|
Create a new thread in the current process.
- Parameters:
-
[in] | ThreadMainFunction | Thread start address |
[in] | ThreadParam | Thread optional parameter |
[in] | stackBottom | The base address of the thread's stack. This argument can be NULL. In that case this function will allocate the stack according to the stackSize argument. |
[in] | stackSize | The size of the thread's stack. |
[out] | td | The descriptor of newly created thread. |
- Return values:
-
| OS_RETURN_CODE_NO_ERROR | If the operation succeeded |
| OS_RETURN_CODE_THREAD_CREATE_FAILED | If the operation Failed |
- Returns:
- Operation status code.
- Availability:
- O/S: Windows, Linux & OS X*
CPU: All
|