MCPcopy Create free account
hub / github.com/Hamlib/Hamlib / pthread_rwlock_unlock

Function pthread_rwlock_unlock

include/hamlib/winpthreads.h:355–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353}
354
355static 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
374static void _pthread_cleanup_dest(pthread_t t)

Callers 3

_pthread_cleanup_destFunction · 0.85
pthread_key_createFunction · 0.85
pthread_key_deleteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected