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

Public Member Functions

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

Protected Attributes

bool islocked_
 
ReadWriteLocklock_
 

Detailed Description

<>

Constructor & Destructor Documentation

◆ WriteLockLocker()

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

◆ ~ WriteLockLocker()

Threads::WriteLockLocker::~ WriteLockLocker ( )
inline

Member Function Documentation

◆ isLocked()

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

◆ lock()

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

◆ lock_

ReadWriteLock& Threads::WriteLockLocker::lock_
protected

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