OpendTect-6_4  6.4
Public Member Functions | Protected Attributes | List of all members
Threads::MutexLocker Class Reference

Public Member Functions

 MutexLocker (Mutex &thelock, bool wait=true)
 
 ~MutexLocker ()
 
bool isLocked () const
 
void unLock ()
 
void lock ()
 

Protected Attributes

Mutexlock_
 
bool islocked_
 

Detailed Description

Constructor & Destructor Documentation

Threads::MutexLocker::MutexLocker ( Mutex thelock,
bool  wait = true 
)
inline
Threads::MutexLocker::~MutexLocker ( )
inline

Member Function Documentation

bool Threads::MutexLocker::isLocked ( ) const
inline
void Threads::MutexLocker::lock ( )
inline

Use at own risk! To be safe, it should only be called \ by the process that created the lock, and have \ called the unLock().

void Threads::MutexLocker::unLock ( )
inline

Use at own risk! To be safe, it should only be called \ by the process that created the lock.

Member Data Documentation

bool Threads::MutexLocker::islocked_
protected
Mutex& Threads::MutexLocker::lock_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019