Functions

Detaches the given thread. Will set the thread handle to NSTDC_NULL. Parameters: void **handle - The handle to the thread.

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.

Sleeps the current thread for secs seconds. Parameters: const double secs - Number of seconds to sleep for.

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.

Yields the current thread allowing other threads to have more CPU time.

Type Definitions

Represents a thread handle