Interface for a thread.
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 146 of file kernel_intf.h.
◆ Detach()
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()
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. |