MCPcopy Create free account
hub / github.com/csound/csound / csoundCreateCondVar

Function csoundCreateCondVar

Top/threads.c:564–571  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

562
563
564PUBLIC void* csoundCreateCondVar()
565{
566 pthread_cond_t* condVar = (pthread_cond_t*)malloc(sizeof(pthread_cond_t));
567
568 if (condVar != NULL)
569 pthread_cond_init(condVar, NULL);
570 return (void*) condVar;
571}
572
573PUBLIC void csoundCondWait(void* condVar, void* mutex) {
574 pthread_cond_wait(condVar, mutex);

Callers 2

csoundCreateBarrierFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected