libacfutils
A general purpose library of utility functions designed to make it easier to develop addons for the X-Plane flight simulator.
|
#include <thread.h>
Data Fields | |
mutex_t | lock |
condvar_t | cv |
bool_t | write_locked |
thread_id_t | writer |
unsigned | refcount |
list_t | waiters |
This is a read-write mutex. RWMutexes are mutexes which allow multiple threads to acquire a read lock, but only a single thread to acquire a write lock.
Use rwmutex_init() to initialize a new rwmutex_t object. To destroy an rwmutex_t, use rwmutex_destroy(). Acquiring and relinquishing an rwmutex_t is done using rwmutex_enter() and rwmutex_exit().
thread_id_t writer |