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

Function taskset_thread_wait4start

libhb/taskset.c:144–159  ·  view source on GitHub ↗

* Block current thread until work is available for it. */

Source from the content-addressed store, hash-verified

142 * Block current thread until work is available for it.
143 */
144static void
145taskset_thread_wait4start( taskset_thread_t *thread )
146{
147 hb_lock( thread->lock );
148 while ( !thread->begin )
149 {
150 hb_cond_wait( thread->begin_cond, thread->lock );
151 }
152
153 /*
154 * We've been released for one run. Insure we block the next
155 * time through the loop.
156 */
157 thread->begin = 0;
158 hb_unlock( thread->lock );
159}
160
161/*
162 * Current thread has completed its work. Indicate completion,

Callers 1

taskset_thread_fFunction · 0.85

Calls 3

hb_lockFunction · 0.85
hb_cond_waitFunction · 0.85
hb_unlockFunction · 0.85

Tested by

no test coverage detected