OpendTect  7.0
Public Member Functions | Protected Attributes | List of all members
Threads::ReadLockLocker Class Reference

Public Member Functions

 ReadLockLocker (ReadWriteLock &thelock, bool wait=true)
 
 ~ ReadLockLocker ()
 
bool isLocked () const
 
void lock ()
 
void unLock ()
 

Protected Attributes

bool islocked_
 
ReadWriteLocklock_
 

Detailed Description

<>

Constructor & Destructor Documentation

◆ ReadLockLocker()

Threads::ReadLockLocker::ReadLockLocker ( ReadWriteLock thelock,
bool  wait = true 
)
inline

◆ ~ ReadLockLocker()

Threads::ReadLockLocker::~ ReadLockLocker ( )
inline

Member Function Documentation

◆ isLocked()

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

◆ lock()

void Threads::ReadLockLocker::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::ReadLockLocker::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::ReadLockLocker::islocked_
protected

◆ lock_

ReadWriteLock& Threads::ReadLockLocker::lock_
protected

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