Skip to content

cf_thread_detach

Category: multithreading
GitHub: cute_multithreading.h


Makes a special note your thread will never have cf_thread_wait called on it. Useful as a minor optimization for long-lived threads.

void cf_thread_detach(CF_Thread* thread);
Parameters Description
thread The thread.

Remarks

When a thread has cf_thread_detach called on it, it is no longer necessary to call cf_thread_wait on it.

CF_Thread
CF_ThreadFn
cf_thread_create
cf_thread_wait
cf_thread_get_id
cf_thread_id