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

Function taskset_thread_complete

libhb/taskset.c:166–173  ·  view source on GitHub ↗

* Current thread has completed its work. Indicate completion, * and if all threads in this task set have completed, wakeup * anyone waiting for this condition. */

Source from the content-addressed store, hash-verified

164 * anyone waiting for this condition.
165 */
166static void
167taskset_thread_complete( taskset_thread_t *thread )
168{
169 hb_lock( thread->lock );
170 thread->complete = 1;
171 hb_cond_signal( thread->complete_cond );
172 hb_unlock( thread->lock );
173}
174
175static void
176taskset_thread_f( void *thread_args_v )

Callers 1

taskset_thread_fFunction · 0.85

Calls 3

hb_lockFunction · 0.85
hb_cond_signalFunction · 0.85
hb_unlockFunction · 0.85

Tested by

no test coverage detected