| OpendTect 8.0

Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
Threads::WriteLockLocker Class Reference
Basic

`#include <thread.h>`

## Public Member Functions
| WriteLockLocker (const WriteLockLocker &)=delete
| WriteLockLocker (ReadWriteLock &thelock, bool wait=true)
| ~WriteLockLocker ()
bool | isLocked () const
void | lock ()
WriteLockLocker & | operator= (const WriteLockLocker &)=delete
void | unLock ()

## Protected Attributes
bool | islocked_
ReadWriteLock & | lock_

## Detailed Description

<>

## Constructor & Destructor Documentation

## ◆ WriteLockLocker() [1/2]

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

## ◆ WriteLockLocker() [2/2]

Threads::WriteLockLocker::WriteLockLocker | ( | const WriteLockLocker & |  | ) |
| delete

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

## ◆ operator=()

WriteLockLocker & Threads::WriteLockLocker::operator= | ( | const WriteLockLocker & |  | ) |
| delete

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