Defined in header
Creates a new thread executing the function
func. The function is invoked as func(arg).
If successful, the object pointed to by
thr is set to the identifier of the new thread.
The completion of this function synchronizes-with the beginning of the thread.
|thr||-||pointer to memory location to put the identifier of the new thread|
|func||-||function to execute|
|arg||-||argument to pass to the function|
 Return value
The thread identifiers may be reused for new threads once the thread has finished and joined or detached.
The type thrd_start_t is a typedef of int(*)(void*), which differs from the POSIX equivalent void*(*)(void*)
Return from the function
func is equivalent to calling thrd_exit with the argument equal to the return value of
- C11 standard (ISO/IEC 9899:2011):
- 22.214.171.124 The thrd_create function (p: 383)
 See also
| detaches a thread |
| blocks until a thread terminates |
C++ documentation for thread