| 305 | |
| 306 | |
| 307 | int pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex, |
| 308 | const struct timespec *abstime) |
| 309 | { |
| 310 | if (have_native_conditions) |
| 311 | { |
| 312 | DWORD timeout= get_milliseconds(abstime); |
| 313 | if (!my_SleepConditionVariableCS(&cond->native_cond, mutex, timeout)) |
| 314 | return ETIMEDOUT; |
| 315 | return 0; |
| 316 | } |
| 317 | else |
| 318 | return legacy_cond_timedwait(cond, mutex, abstime); |
| 319 | } |
| 320 | |
| 321 | |
| 322 | int pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex) |
no test coverage detected