MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / pthread_cond_wait

Function pthread_cond_wait

compat/os2threads.h:192–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192static av_always_inline int pthread_cond_wait(pthread_cond_t *cond,
193 pthread_mutex_t *mutex)
194{
195 __atomic_increment(&cond->wait_count);
196
197 pthread_mutex_unlock(mutex);
198
199 DosWaitEventSem(cond->event_sem, SEM_INDEFINITE_WAIT);
200
201 __atomic_decrement(&cond->wait_count);
202
203 DosPostEventSem(cond->ack_sem);
204
205 pthread_mutex_lock(mutex);
206
207 return 0;
208}
209
210static av_always_inline int pthread_once(pthread_once_t *once_control,
211 void (*init_routine)(void))

Callers 15

iec61883_read_packetFunction · 0.50
async_buffer_taskFunction · 0.50
async_read_internalFunction · 0.50
async_seekFunction · 0.50
circular_buffer_task_txFunction · 0.50
thread_workerFunction · 0.50

Calls 2

pthread_mutex_unlockFunction · 0.70
pthread_mutex_lockFunction · 0.70

Tested by

no test coverage detected