OpendTect  7.0
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
MonitoredObject::AccessLocker Class Reference

Public Member Functions

 AccessLocker (const AccessLocker &)
 
 AccessLocker (const MonitoredObject &, bool forread=true)
 
 ~AccessLocker ()
 
bool convertToWrite ()
 
bool isLocked () const
 
AccessLockeroperator= (const AccessLocker &)
 
void reLock (Locker::WaitType wt=Locker::WaitIfLocked)
 
LockertheLock ()
 
void unlockNow ()
 

Static Public Member Functions

static void enableLocking (bool yn)
 don't use unless you understand the implications More...
 

Protected Attributes

Lockerthelock_ = nullptr
 

Detailed Description

<>

Constructor & Destructor Documentation

◆ AccessLocker() [1/2]

MonitoredObject::AccessLocker::AccessLocker ( const MonitoredObject ,
bool  forread = true 
)

◆ AccessLocker() [2/2]

MonitoredObject::AccessLocker::AccessLocker ( const AccessLocker )

◆ ~AccessLocker()

MonitoredObject::AccessLocker::~AccessLocker ( )

Member Function Documentation

◆ convertToWrite()

bool MonitoredObject::AccessLocker::convertToWrite ( )

◆ enableLocking()

static void MonitoredObject::AccessLocker::enableLocking ( bool  yn)
static

don't use unless you understand the implications

◆ isLocked()

bool MonitoredObject::AccessLocker::isLocked ( ) const

◆ operator=()

AccessLocker& MonitoredObject::AccessLocker::operator= ( const AccessLocker )

◆ reLock()

void MonitoredObject::AccessLocker::reLock ( Locker::WaitType  wt = Locker::WaitIfLocked)

◆ theLock()

Locker* MonitoredObject::AccessLocker::theLock ( )
inline

◆ unlockNow()

void MonitoredObject::AccessLocker::unlockNow ( )

Member Data Documentation

◆ thelock_

Locker* MonitoredObject::AccessLocker::thelock_ = nullptr
protected

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