20#ifndef __GUAC_RWLOCK_H
21#define __GUAC_RWLOCK_H
99int guac_rwlock_acquire_write_lock(
guac_rwlock* reentrant_rwlock);
118int guac_rwlock_acquire_read_lock(
guac_rwlock* reentrant_rwlock);
136int guac_rwlock_release_lock(
guac_rwlock* reentrant_rwlock);
This file implements reentrant read-write locks using thread-local storage to keep track of how locks...
Definition rwlock.h:48
pthread_rwlock_t lock
A non-reentrant pthread rwlock to be wrapped by the local lock, functions providing reentrant behavio...
Definition rwlock.h:54
pthread_key_t key
A key to access a thread-local property tracking any ownership of the lock by the current thread.
Definition rwlock.h:60