Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
AutoLock.hh File Reference
#include "PTL/Threading.hh"
#include "PTL/Utility.hh"
#include <chrono>
#include <iostream>
#include <mutex>
#include <system_error>

Go to the source code of this file.

Classes

class  PTL::TemplateAutoLock< MutexT >
 

Namespaces

namespace  PTL
 

Macros

#define _is_stand_mutex(Tp)   (std::is_same<Tp, Mutex>::value)
 
#define _is_recur_mutex(Tp)   (std::is_same<Tp, RecursiveMutex>::value)
 
#define _is_other_mutex(Tp)   (!_is_stand_mutex(Tp) && !_is_recur_mutex(Tp))
 

Typedefs

using PTL::AutoLock = TemplateAutoLock< Mutex >
 
using PTL::RecursiveAutoLock = TemplateAutoLock< RecursiveMutex >
 

Macro Definition Documentation

◆ _is_other_mutex

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

Definition at line 356 of file AutoLock.hh.

◆ _is_recur_mutex

#define _is_recur_mutex (   Tp)    (std::is_same<Tp, RecursiveMutex>::value)

Definition at line 355 of file AutoLock.hh.

◆ _is_stand_mutex

#define _is_stand_mutex (   Tp)    (std::is_same<Tp, Mutex>::value)

Definition at line 354 of file AutoLock.hh.