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

#include <thread.h>

Public Member Functions

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

Protected Attributes

bool islocked_
 
ReadWriteLocklock_
 

Detailed Description

<>

Constructor & Destructor Documentation

◆ ReadLockLocker() [1/2]

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

◆ ReadLockLocker() [2/2]

Threads::ReadLockLocker::ReadLockLocker ( const ReadLockLocker & )
delete

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

◆ operator=()

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

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