OpendTect
7.0
|
Locks the lock, shutting out access from other threads if needed. More...
Public Types | |
enum | RWType { ReadLock , WriteLock } |
enum | WaitType { WaitIfLocked , DontWaitForLock } |
Public Member Functions | |
Locker (Lock &) | |
Locker (Lock &, RWType) | |
Locker (Lock &, RWType, WaitType) | |
Locker (Lock &, WaitType) | |
Locker (Lock &, WaitType, RWType) | |
virtual | ~Locker () |
bool | convertToWriteLock () |
bool | isLocked () const |
void | reLock (WaitType wt=WaitIfLocked) |
< Locker goes out of scope More... | |
void | unlockNow () |
Protected Attributes | |
bool | isread_ |
Lock & | lock_ |
bool | needunlock_ |
Private Member Functions | |
Locker (const Locker &) | |
intentionally not implemented More... | |
Locker & | operator= (const Locker &) |
intentionally not implemented More... | |
Locks the lock, shutting out access from other threads if needed.
<>
Threads::Locker::Locker | ( | Lock & | ) |
|
inlinevirtual |
|
private |
intentionally not implemented
bool Threads::Locker::convertToWriteLock | ( | ) |
|
inline |
void Threads::Locker::reLock | ( | WaitType | wt = WaitIfLocked | ) |
< Locker goes out of scope
void Threads::Locker::unlockNow | ( | ) |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024