Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4AutoLock.hh File Reference
#include "G4Threading.hh"
#include <chrono>
#include <iostream>
#include <mutex>
#include <system_error>

Go to the source code of this file.

Classes

class  G4TemplateAutoLock< _Mutex_t >
 

Macros

#define _is_stand_mutex(_Tp)   (std::is_same<_Tp, G4Mutex>::value)
 
#define _is_recur_mutex(_Tp)   (std::is_same<_Tp, G4RecursiveMutex>::value)
 
#define _is_other_mutex(_Tp)   (!_is_stand_mutex(_Tp) && !_is_recur_mutex(_Tp))
 

Typedefs

using G4AutoLock = G4TemplateAutoLock< G4Mutex >
 
using G4RecursiveAutoLock = G4TemplateAutoLock< G4RecursiveMutex >
 
template<typename _Tp >
using G4TAutoLock = G4TemplateAutoLock< _Tp >
 

Macro Definition Documentation

◆ _is_other_mutex

#define _is_other_mutex (   _Tp)    (!_is_stand_mutex(_Tp) && !_is_recur_mutex(_Tp))

Definition at line 441 of file G4AutoLock.hh.

◆ _is_recur_mutex

#define _is_recur_mutex (   _Tp)    (std::is_same<_Tp, G4RecursiveMutex>::value)

Definition at line 440 of file G4AutoLock.hh.

◆ _is_stand_mutex

#define _is_stand_mutex (   _Tp)    (std::is_same<_Tp, G4Mutex>::value)

Definition at line 439 of file G4AutoLock.hh.

Typedef Documentation

◆ G4AutoLock

Definition at line 582 of file G4AutoLock.hh.

◆ G4RecursiveAutoLock

◆ G4TAutoLock

template<typename _Tp >
using G4TAutoLock = G4TemplateAutoLock<_Tp>

Definition at line 588 of file G4AutoLock.hh.