MCPcopy Create free account
hub / github.com/ZDoom/Raze / pthread_cond_destroy

Function pthread_cond_destroy

libraries/webp/src/utils/thread_utils.c:131–141  ·  view source on GitHub ↗

Condition

Source from the content-addressed store, hash-verified

129
130// Condition
131static int pthread_cond_destroy(pthread_cond_t* const condition) {
132 int ok = 1;
133#ifdef USE_WINDOWS_CONDITION_VARIABLE
134 (void)condition;
135#else
136 ok &= (CloseHandle(condition->waiting_sem_) != 0);
137 ok &= (CloseHandle(condition->received_sem_) != 0);
138 ok &= (CloseHandle(condition->signal_event_) != 0);
139#endif
140 return !ok;
141}
142
143static int pthread_cond_init(pthread_cond_t* const condition, void* cond_attr) {
144 (void)cond_attr;

Callers 5

pthread_cond_initFunction · 0.85
ResetFunction · 0.85
EndFunction · 0.85
Event_CloseFunction · 0.85
Semaphore_CloseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected