Condition
| 129 | |
| 130 | // Condition |
| 131 | static 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 | |
| 143 | static int pthread_cond_init(pthread_cond_t* const condition, void* cond_attr) { |
| 144 | (void)cond_attr; |
no outgoing calls
no test coverage detected