Geant4 10.7.0
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

virtual bool lock ()
 
virtual bool unlock ()
 
 mutex (G4AutoLock &a_mutex)
 
virtual ~mutex ()
 

Protected Member Functions

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

Protected Attributes

G4AutoLockm_mutex
 

Detailed Description

Definition at line 56 of file G4RootPNtupleManager.hh.

Constructor & Destructor Documentation

◆ mutex() [1/2]

mutex::mutex ( G4AutoLock a_mutex)
inline

Definition at line 69 of file G4RootPNtupleManager.hh.

69:m_mutex(a_mutex){}
G4AutoLock & m_mutex

◆ ~mutex()

virtual mutex::~mutex ( )
inlinevirtual

Definition at line 70 of file G4RootPNtupleManager.hh.

70{}

◆ mutex() [2/2]

mutex::mutex ( const mutex a_from)
inlineprotected

Definition at line 72 of file G4RootPNtupleManager.hh.

72:parent(a_from),m_mutex(a_from.m_mutex){}

Member Function Documentation

◆ lock()

virtual bool mutex::lock ( )
inlinevirtual

Definition at line 59 of file G4RootPNtupleManager.hh.

59 {
60 // G4cout << "!!! Mutex lock" << G4endl;
61 m_mutex.lock();
62 return true;}

◆ operator=()

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

Definition at line 73 of file G4RootPNtupleManager.hh.

73{return *this;}

◆ unlock()

virtual bool mutex::unlock ( )
inlinevirtual

Definition at line 63 of file G4RootPNtupleManager.hh.

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

Member Data Documentation

◆ m_mutex

G4AutoLock& mutex::m_mutex
protected

Definition at line 75 of file G4RootPNtupleManager.hh.

Referenced by lock(), and unlock().


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