![]()  | 
  
    MySQL 9.5.0
    
   Source Code Documentation 
   | 
 
MySQL rwlock implementation. More...
Go to the source code of this file.
Functions | |
| static int | native_rw_init (native_rw_lock_t *rwp) | 
| static int | native_rw_destroy (native_rw_lock_t *rwp) | 
| static int | native_rw_rdlock (native_rw_lock_t *rwp) | 
| static int | native_rw_tryrdlock (native_rw_lock_t *rwp) | 
| static int | native_rw_wrlock (native_rw_lock_t *rwp) | 
| static int | native_rw_trywrlock (native_rw_lock_t *rwp) | 
| static int | native_rw_unlock (native_rw_lock_t *rwp) | 
| int | rw_pr_init (rw_pr_lock_t *) | 
| int | rw_pr_rdlock (rw_pr_lock_t *) | 
| int | rw_pr_wrlock (rw_pr_lock_t *) | 
| int | rw_pr_unlock (rw_pr_lock_t *) | 
| int | rw_pr_destroy (rw_pr_lock_t *) | 
MySQL rwlock implementation.
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
      
  | 
  inlinestatic | 
      
  | 
  inlinestatic | 
      
  | 
  inlinestatic | 
      
  | 
  inlinestatic | 
      
  | 
  inlinestatic | 
      
  | 
  inlinestatic | 
      
  | 
  inlinestatic | 
| int rw_pr_destroy | ( | rw_pr_lock_t * | rwlock | ) | 
| int rw_pr_init | ( | rw_pr_lock_t * | rwlock | ) | 
| int rw_pr_rdlock | ( | rw_pr_lock_t * | rwlock | ) | 
| int rw_pr_unlock | ( | rw_pr_lock_t * | rwlock | ) | 
| int rw_pr_wrlock | ( | rw_pr_lock_t * | rwlock | ) |