MySQL 8.4.2
Source Code Documentation
|
MySQL rwlock ABI. More...
#include <stddef.h>
#include <sys/types.h>
#include <mysql/components/services/bits/my_thread_bits.h>
#include <mysql/components/services/bits/thr_cond_bits.h>
#include <mysql/components/services/bits/thr_mutex_bits.h>
Go to the source code of this file.
Classes | |
struct | rw_pr_lock_t |
Portable implementation of special type of read-write locks. More... | |
Typedefs | |
typedef pthread_rwlock_t | native_rw_lock_t |
MySQL rwlock ABI.
There are two "layers": 1) native_rw_*() Functions that map directly down to OS primitives. Windows - SRWLock Other OSes - pthread 2) mysql_rw*() Functions that include Performance Schema instrumentation. See include/mysql/psi/mysql_thread.h
This file also includes rw_pr_*(), which implements a special version of rwlocks that prefer readers. The P_S version of these are mysql_prlock_*() - see include/mysql/psi/mysql_thread.h
typedef pthread_rwlock_t native_rw_lock_t |