MCPcopy Create free account
hub / github.com/VCVRack/Rack / lock_shared

Method lock_shared

include/mutex.hpp:43–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 }
42
43 void lock_shared() {
44 int err = pthread_rwlock_rdlock(&rwlock);
45 (void) err;
46 assert(!err);
47 }
48 /** Returns whether the lock was acquired. */
49 bool try_lock_shared() {
50 return pthread_rwlock_tryrdlock(&rwlock) == 0;

Callers 1

SharedLockMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected