23#ifndef COMPONENTS_SERVICES_BITS_THR_RWLOCK_BITS_H
24#define COMPONENTS_SERVICES_BITS_THR_RWLOCK_BITS_H
57 BOOL have_exclusive_srwlock;
Types to make different thread packages compatible.
pthread_t my_thread_t
Definition: my_thread_bits.h:47
Portable implementation of special type of read-write locks.
Definition: thr_rwlock_bits.h:94
unsigned int writers_waiting_readers
Number of writers waiting for readers to go away.
Definition: thr_rwlock_bits.h:108
native_cond_t no_active_readers
Condition variable which is used to wake-up writers waiting for readers to go away.
Definition: thr_rwlock_bits.h:104
my_thread_t writer_thread
Thread holding wr-lock (for debug purposes only).
Definition: thr_rwlock_bits.h:112
unsigned int active_readers
Number of active readers.
Definition: thr_rwlock_bits.h:106
native_mutex_t lock
Lock which protects the structure.
Definition: thr_rwlock_bits.h:99
bool active_writer
Indicates whether there is an active writer.
Definition: thr_rwlock_bits.h:110
MySQL condition variable implementation.
pthread_cond_t native_cond_t
Definition: thr_cond_bits.h:45
pthread_mutex_t native_mutex_t
Definition: thr_mutex_bits.h:54
pthread_rwlock_t native_rw_lock_t
Definition: thr_rwlock_bits.h:60