Interface for a thread.
More...
|
| ADTF_IID (IThread, "thread.ant.kernel.services.adtf.iid") |
|
virtual tResult | Detach ()=0 |
| Detaches the thread, which can then no longer be modified via this interface. More...
|
|
virtual bool | IsCurrent () const =0 |
| Returns whether this thread is the current thread of execution. More...
|
|
virtual tResult | Join (tTimeStamp nTimeout=-1)=0 |
| Blocks the current thread until this thread has exited. More...
|
|
| ADTF_IID (IObject, "object.ant.ucom.adtf.iid") |
| Marks the IObject to be castable with the ucom_cast() More...
|
|
|
| ~IThread ()=default |
| Protected destructor --> Use implemented Destroy() instead of delete!
|
|
| ~IObject ()=default |
| Protected destructor --> Use implemented Destroy() instead of delete!
|
|
Interface for a thread.
Definition at line 142 of file kernel_intf.h.
◆ Detach()
virtual tResult Detach |
( |
| ) |
|
|
pure virtual |
Detaches the thread, which can then no longer be modified via this interface.
- Returns
- Standard result.
◆ IsCurrent()
virtual bool IsCurrent |
( |
| ) |
const |
|
pure virtual |
Returns whether this thread is the current thread of execution.
- Returns
- Whether this thread is the current thread of execution.
◆ Join()
virtual tResult Join |
( |
tTimeStamp |
nTimeout = -1 | ) |
|
|
pure virtual |
Blocks the current thread until this thread has exited.
- Parameters
-
[in] | nTimeout | The timeout in microseconds. -1 = no timeout, 0 = non-blocking. |
- Return values
-
ERR_TIMEOUT | The timeout has expired. |