| 353 | } |
| 354 | |
| 355 | static int pthread_rwlock_unlock(pthread_rwlock_t* l) |
| 356 | { |
| 357 | void* state = *(void**)l; |
| 358 | |
| 359 | if (state == (void*)1) |
| 360 | { |
| 361 | /* Known to be an exclusive lock */ |
| 362 | ReleaseSRWLockExclusive(l); |
| 363 | } |
| 364 | else |
| 365 | { |
| 366 | /* A shared unlock will work */ |
| 367 | ReleaseSRWLockShared(l); |
| 368 | } |
| 369 | |
| 370 | return 0; |
| 371 | } |
| 372 | |
| 373 | |
| 374 | static void _pthread_cleanup_dest(pthread_t t) |
no outgoing calls
no test coverage detected