Joins the given thread. Will set the thread handle to NSTDC_NULL.
Parameters:
void **handle - The handle to the thread.
Returns: int ret - The value that the thread returns with.
Spawns a new thread.
Failure to call nstd_thread_join or nstd_thread_detach will result in a memory leak.
Parameters:
int(*thread_fn)() - The function to be spawned as a new thread.
Returns: void *handle - The handle to the thread.