| 468 | } |
| 469 | |
| 470 | static int pthread_rwlock_trywrlock(pthread_rwlock_t *l) |
| 471 | { |
| 472 | /* Try to grab lock if it has no users */ |
| 473 | if (!InterlockedCompareExchangePointer((volatile PVOID*) l, (void *)1, NULL)) return 0; |
| 474 | |
| 475 | return EBUSY; |
| 476 | } |
| 477 | |
| 478 | static unsigned long long _pthread_time_in_ms(void) |
| 479 | { |
no outgoing calls
no test coverage detected