OpendTect  6.6
Public Types | Public Member Functions | Protected Attributes | List of all members
Threads::Lock Class Reference

A lock of a type that (hopefully) suits your needs. To use it, you need the Locker class. More...

Public Types

enum  Type { BigWork , SmallWork , MultiRead }
 

Public Member Functions

 Lock (bool for_just_a_few_operations=false)
 
 Lock (const Lock &)
 
 Lock (Type)
 
virtual ~Lock ()
 
bool isMutex () const
 
bool isRWLock () const
 
bool isSpinLock () const
 
Mutexmutex ()
 
Lockoperator= (const Lock &)
 
ReadWriteLockreadWriteLock ()
 
SpinLockspinLock ()
 

Protected Attributes

Mutexmutex_
 
ReadWriteLockrwlock_
 
SpinLocksplock_
 

Detailed Description

A lock of a type that (hopefully) suits your needs. To use it, you need the Locker class.

<>

Member Enumeration Documentation

◆ Type

Enumerator
BigWork 
SmallWork 
MultiRead 

Constructor & Destructor Documentation

◆ Lock() [1/3]

Threads::Lock::Lock ( bool  for_just_a_few_operations = false)

◆ Lock() [2/3]

Threads::Lock::Lock ( Type  )

◆ Lock() [3/3]

Threads::Lock::Lock ( const Lock )

◆ ~Lock()

virtual Threads::Lock::~Lock ( )
virtual

Member Function Documentation

◆ isMutex()

bool Threads::Lock::isMutex ( ) const
inline

◆ isRWLock()

bool Threads::Lock::isRWLock ( ) const
inline

◆ isSpinLock()

bool Threads::Lock::isSpinLock ( ) const
inline

◆ mutex()

Mutex& Threads::Lock::mutex ( )
inline

◆ operator=()

Lock& Threads::Lock::operator= ( const Lock )

◆ readWriteLock()

ReadWriteLock& Threads::Lock::readWriteLock ( )
inline

◆ spinLock()

SpinLock& Threads::Lock::spinLock ( )
inline

Member Data Documentation

◆ mutex_

Mutex* Threads::Lock::mutex_
protected

◆ rwlock_

ReadWriteLock* Threads::Lock::rwlock_
protected

◆ splock_

SpinLock* Threads::Lock::splock_
protected

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