OpendTect  7.0
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 lock ()
 
void unLock ()
 

Protected Attributes

bool islocked_
 
Mutexlock_
 

Detailed Description

<>

Constructor & Destructor Documentation

◆ MutexLocker()

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

◆ ~ MutexLocker()

Threads::MutexLocker::~ MutexLocker ( )
inline

Member Function Documentation

◆ isLocked()

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

◆ lock()

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().

◆ 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

◆ islocked_

bool Threads::MutexLocker::islocked_
protected

◆ lock_

Mutex& Threads::MutexLocker::lock_
protected

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