c/thread/thrd create

Creates a new thread executing the function. The function is invoked as.

If successful, the object pointed to by is set to the identifier of the new thread.

The completion of this function synchronizes-with the beginning of the thread.

Return value
thrd_success if the creation of the new thread was successful. Otherwise returns thrd_nomem if there was insufficient amount of memory or thrd_error if another error occurred.