thrd_create

thrd_create

Defined in header <threads.h>
int thrd_create( thrd_t *thr, thrd_start_t func, void *arg );
(since C11)

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.

Parameters

<
thr - pointer to memory location to put the identifier of the new thread