MCPcopy Create free account
hub / github.com/pydata/numexpr / pthread_cond_init

Function pthread_cond_init

numexpr3/win32/pthread.c:82–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82int pthread_cond_init(pthread_cond_t *cond, const void *unused)
83{
84 cond->waiters = 0;
85 cond->was_broadcast = 0;
86 InitializeCriticalSection(&cond->waiters_lock);
87
88 cond->sema = CreateSemaphore(NULL, 0, LONG_MAX, NULL);
89 if (!cond->sema)
90 die("CreateSemaphore() failed");
91
92 cond->continue_broadcast = CreateEvent(NULL, /* security */
93 FALSE, /* auto-reset */
94 FALSE, /* not signaled */
95 NULL); /* name */
96 if (!cond->continue_broadcast)
97 die("CreateEvent() failed");
98
99 return 0;
100}
101
102int pthread_cond_destroy(pthread_cond_t *cond)
103{

Callers 1

global_stateMethod · 0.85

Calls 1

dieFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…