Geant4-11
Public Member Functions | Protected Member Functions | Protected Attributes | Private Types
mutex Class Reference

#include <G4RootPNtupleManager.hh>

Inheritance diagram for mutex:

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

G4AutoLockm_mutex
 

Private Types

using parent = tools::wroot::imutex
 

Detailed Description

Definition at line 57 of file G4RootPNtupleManager.hh.

Member Typedef Documentation

◆ parent

using mutex::parent = tools::wroot::imutex
private

Definition at line 58 of file G4RootPNtupleManager.hh.

Constructor & Destructor Documentation

◆ mutex() [1/2]

mutex::mutex ( G4AutoLock a_mutex)
inline

Definition at line 70 of file G4RootPNtupleManager.hh.

70:m_mutex(a_mutex){}
G4AutoLock & m_mutex

◆ ~mutex()

virtual mutex::~mutex ( )
virtualdefault

◆ mutex() [2/2]

mutex::mutex ( const mutex a_from)
inlineprotected

Definition at line 73 of file G4RootPNtupleManager.hh.

73:parent(a_from),m_mutex(a_from.m_mutex){}
tools::wroot::imutex parent

Member Function Documentation

◆ lock()

virtual bool mutex::lock ( )
inlinevirtual

Definition at line 60 of file G4RootPNtupleManager.hh.

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

References G4TemplateAutoLock< _Mutex_t >::lock(), and m_mutex.

◆ operator=()

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

Definition at line 74 of file G4RootPNtupleManager.hh.

74{return *this;}

◆ unlock()

virtual bool mutex::unlock ( )
inlinevirtual

Definition at line 64 of file G4RootPNtupleManager.hh.

64 {
66 // G4cout << "!!! Mutex unlock" << G4endl;
67 return true; }

References m_mutex, and G4TemplateAutoLock< _Mutex_t >::unlock().

Field Documentation

◆ m_mutex

G4AutoLock& mutex::m_mutex
protected

Definition at line 76 of file G4RootPNtupleManager.hh.

Referenced by lock(), and unlock().


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