OpendTect-6_4  6.4
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 (Type)
 
 Lock (const Lock &)
 
Lockoperator= (const Lock &)
 
virtual ~Lock ()
 
bool isMutex () const
 
bool isSpinLock () const
 
bool isRWLock () const
 
Mutexmutex ()
 
SpinLockspinLock ()
 
ReadWriteLockreadWriteLock ()
 

Protected Attributes

Mutexmutex_
 
SpinLocksplock_
 
ReadWriteLockrwlock_
 

Detailed Description

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

Member Enumeration Documentation

Enumerator
BigWork 
SmallWork 
MultiRead 

Constructor & Destructor Documentation

Threads::Lock::Lock ( bool  for_just_a_few_operations = false)
Threads::Lock::Lock ( Type  )
Threads::Lock::Lock ( const Lock )
virtual Threads::Lock::~Lock ( )
virtual

Member Function Documentation

bool Threads::Lock::isMutex ( ) const
inline
bool Threads::Lock::isRWLock ( ) const
inline
bool Threads::Lock::isSpinLock ( ) const
inline
Mutex& Threads::Lock::mutex ( )
inline
Lock& Threads::Lock::operator= ( const Lock )
ReadWriteLock& Threads::Lock::readWriteLock ( )
inline
SpinLock& Threads::Lock::spinLock ( )
inline

Member Data Documentation

Mutex* Threads::Lock::mutex_
protected
ReadWriteLock* Threads::Lock::rwlock_
protected
SpinLock* Threads::Lock::splock_
protected

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