MySQL 8.0.31
Source Code Documentation
lock0guards.h File Reference
#include "lock0lock.h"
#include "ut0class_life_cycle.h"

Go to the source code of this file.

Classes

class  locksys::Global_exclusive_latch_guard
 A RAII helper which latches global_latch in exclusive mode during constructor, and unlatches it during destruction, preventing any other threads from activity within lock_sys for it's entire scope. More...
 
class  locksys::Global_exclusive_try_latch
 A RAII helper which tries to exclusively latch the global_lach in constructor and unlatches it, if needed, during destruction, preventing any other threads from activity within lock_sys for it's entire scope, if owns_lock(). More...
 
class  locksys::Global_shared_latch_guard
 A RAII helper which latches global_latch in shared mode during constructor, and unlatches it during destruction, preventing any other thread from acquiring exclusive latch. More...
 
class  locksys::Shard_naked_latch_guard
 A RAII helper which latches the mutex protecting given shard during constructor, and unlatches it during destruction. More...
 
class  locksys::Shard_latch_guard
 A RAII wrapper class which combines Global_shared_latch_guard and Shard_naked_latch_guard to s-latch the global lock_sys latch and latch the mutex protecting the specified shard for the duration of its scope. More...
 
class  locksys::Shard_naked_latches_guard
 A RAII helper which latches the mutexes protecting specified shards for the duration of its scope. More...
 
class  locksys::Shard_latches_guard
 A RAII wrapper class which s-latches the global lock_sys shard, and mutexes protecting specified shards for the duration of its scope. More...
 

Namespaces

namespace  locksys