MySQL 8.0.40
Source Code Documentation
sync0sharded_rw.h File Reference

The sharded read-write lock (for threads). More...

#include "sync0rw.h"
#include "ut0cpu_cache.h"
#include "ut0rnd.h"
#include "ut0ut.h"

Go to the source code of this file.

Classes

class  Sharded_rw_lock
 Rw-lock with very fast, highly concurrent s-lock but slower x-lock. More...
 

Detailed Description

The sharded read-write lock (for threads).

The s-lock scales better than in single rw-lock, but the x-lock is much slower.