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

Function pthread_rwlock_trywrlock

include/hamlib/winpthreads.h:470–476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

468}
469
470static 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
478static unsigned long long _pthread_time_in_ms(void)
479{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected