MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / hb_thread_has_exited

Function hb_thread_has_exited

libhb/ports.c:1071–1080  ·  view source on GitHub ↗

* hb_thread_has_exited() ************************************************************************ * Returns 1 if the thread can be joined right away, 0 otherwise. ***********************************************************************/

Source from the content-addressed store, hash-verified

1069 * Returns 1 if the thread can be joined right away, 0 otherwise.
1070 ***********************************************************************/
1071int hb_thread_has_exited( hb_thread_t * t )
1072{
1073 int exited;
1074
1075 hb_lock( t->lock );
1076 exited = t->exited;
1077 hb_unlock( t->lock );
1078
1079 return exited;
1080}
1081
1082/************************************************************************
1083 * Portable mutex implementation

Callers 1

thread_funcFunction · 0.85

Calls 2

hb_lockFunction · 0.85
hb_unlockFunction · 0.85

Tested by

no test coverage detected