MySQL 9.0.0
Source Code Documentation
Monitor< T > Class Template Reference

Monitor pattern. More...

#include <monitor.h>

Inheritance diagram for Monitor< T >:
[legend]

Public Member Functions

 Monitor (T t)
 
template<class F >
auto operator() (F f) const
 

Protected Attributes

t_
 
std::mutex mtx_
 

Detailed Description

template<class T>
class Monitor< T >

Monitor pattern.

implemented based on Herb Sutters example.

Constructor & Destructor Documentation

◆ Monitor()

template<class T >
Monitor< T >::Monitor ( t)
inline

Member Function Documentation

◆ operator()()

template<class T >
template<class F >
auto Monitor< T >::operator() ( f) const
inline

Member Data Documentation

◆ mtx_

template<class T >
std::mutex Monitor< T >::mtx_
mutableprotected

◆ t_

template<class T >
T Monitor< T >::t_
mutableprotected

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