Skip to main content

GC_thread_is_registered

Function GC_thread_is_registered 

Source
pub unsafe extern "C" fn GC_thread_is_registered() -> c_int
Expand description

Return 1 (true) if the calling (current) thread is registered with the garbage collector, 0 otherwise. Acquires the allocator lock in the reader mode. If the thread is finished (e.g. running in a destructor and not registered manually again), then it is considered as not registered.