MySQL  8.0.18
Source Code Documentation
MyRcuLock< T >::ReadLock Class Reference

High level read API for readers. More...

#include <my_rcu_lock.h>

Inheritance diagram for MyRcuLock< T >::ReadLock:
SslAcceptorContext::AutoLock

Public Member Functions

 operator const T * ()
 get the value through the scope guard More...
 
 ReadLock (MyRcuLock *l)
 construct a new read lock scope guard More...
 
 ReadLock (const ReadLock &)=delete
 
 ~ReadLock ()
 

Protected Member Functions

MyRcuLock operator= (const ReadLock)=delete
 

Protected Attributes

MyRcuLock_lock
 

Detailed Description

template<typename T>
class MyRcuLock< T >::ReadLock

High level read API for readers.

A convenience scope guard class for readers.Use this for all of the RCU global readers.

Constructor & Destructor Documentation

◆ ReadLock() [1/2]

template<typename T >
MyRcuLock< T >::ReadLock::ReadLock ( MyRcuLock l)
inline

construct a new read lock scope guard

◆ ReadLock() [2/2]

template<typename T >
MyRcuLock< T >::ReadLock::ReadLock ( const ReadLock )
delete

◆ ~ReadLock()

template<typename T >
MyRcuLock< T >::ReadLock::~ReadLock ( )
inline

Member Function Documentation

◆ operator const T *()

template<typename T >
MyRcuLock< T >::ReadLock::operator const T * ( )
inline

get the value through the scope guard

◆ operator=()

template<typename T >
MyRcuLock MyRcuLock< T >::ReadLock::operator= ( const ReadLock  )
protecteddelete

Member Data Documentation

◆ _lock

template<typename T >
MyRcuLock* MyRcuLock< T >::ReadLock::_lock
protected

The documentation for this class was generated from the following file: