OpendTect 8.0
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
Threads::MutexLocker Class Reference

#include <thread.h>

Public Member Functions

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

Protected Attributes

bool islocked_
 
Mutexlock_
 

Detailed Description

<>

Constructor & Destructor Documentation

◆ MutexLocker() [1/2]

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

◆ MutexLocker() [2/2]

Threads::MutexLocker::MutexLocker ( const MutexLocker & )
delete

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

◆ operator=()

MutexLocker & Threads::MutexLocker::operator= ( const MutexLocker & )
delete

◆ 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-2025