MySQL  8.0.21
Source Code Documentation
thr_rwlock_bits.h File Reference

MySQL rwlock ABI. More...

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
 

Detailed Description

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 Documentation

◆ native_rw_lock_t

typedef pthread_rwlock_t native_rw_lock_t