Skip to content

cf_thread_wait

Category: multithreading
GitHub: cute_multithreading.h


Waits and blocks/sleeps until the thread exits, and returns the thread's return result.

CF_Result cf_thread_wait(CF_Thread* thread);
Parameters Description
thread The thread.

Remarks

It is invalid to call this function on a detached thread (see cf_thread_detach). It is invalid to call this function on a thread more than once.

CF_Thread
CF_ThreadFn
cf_thread_create
cf_thread_detach
cf_thread_get_id
cf_thread_id