Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
mutex Class Reference

#include <G4RootPNtupleManager.hh>

+ Inheritance diagram for mutex:

Public Member Functions

bool lock () override
 
bool unlock () override
 
 mutex (G4AutoLock &a_mutex)
 
 ~mutex () override=default
 

Protected Member Functions

 mutex (const mutex &a_from)=default
 
mutexoperator= (const mutex &)
 

Protected Attributes

G4AutoLockm_mutex
 

Detailed Description

Definition at line 58 of file G4RootPNtupleManager.hh.

Constructor & Destructor Documentation

◆ mutex() [1/2]

mutex::mutex ( G4AutoLock a_mutex)
inline

Definition at line 75 of file G4RootPNtupleManager.hh.

75:m_mutex(a_mutex){}
G4AutoLock & m_mutex

◆ ~mutex()

mutex::~mutex ( )
overridedefault

◆ mutex() [2/2]

mutex::mutex ( const mutex a_from)
protecteddefault

Member Function Documentation

◆ lock()

bool mutex::lock ( )
inlineoverride

Definition at line 61 of file G4RootPNtupleManager.hh.

62 {
63 // G4cout << "!!! Mutex lock" << G4endl;
64 m_mutex.lock();
65 return true;
66 }

◆ operator=()

mutex & mutex::operator= ( const mutex )
inlineprotected

Definition at line 80 of file G4RootPNtupleManager.hh.

80{return *this;}

◆ unlock()

bool mutex::unlock ( )
inlineoverride

Definition at line 67 of file G4RootPNtupleManager.hh.

68 {
70 // G4cout << "!!! Mutex unlock" << G4endl;
71 return true;
72 }

Member Data Documentation

◆ m_mutex

G4AutoLock& mutex::m_mutex
protected

Definition at line 82 of file G4RootPNtupleManager.hh.

Referenced by lock(), and unlock().


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