glibmm: Glib::Threads::RecMutex::Lock Class Reference

glibmm 2.66.5

Public Member Functions | List of all members
Glib::Threads::RecMutex::Lock Class Reference
Threads

Utility class for exception-safe locking of recursive mutexes. More...

`#include <glibmm/threads.h>`

## Public Member Functions
| Lock (RecMutex & mutex)
| Lock (RecMutex & mutex, NotLock)
| Lock (RecMutex & mutex, TryLock)
| Lock (const RecMutex::Lock &)=delete
RecMutex::Lock & | operator= (const RecMutex::Lock &)=delete
| ~Lock ()
void | acquire ()
bool | try_acquire ()
void | release ()
bool | locked () const

## Detailed Description

Utility class for exception-safe locking of recursive mutexes.

Deprecated:
  Please use std::lock_guard or std::unique_lock instead.

## Constructor & Destructor Documentation

## ◆ Lock() [1/4]

Glib::Threads::RecMutex::Lock::Lock | ( | RecMutex & | mutex | ) |
| inlineexplicit

## ◆ Lock() [2/4]

Glib::Threads::RecMutex::Lock::Lock | ( | RecMutex & | mutex,
|  | NotLock |
| ) |  |
| inline

## ◆ Lock() [3/4]

Glib::Threads::RecMutex::Lock::Lock | ( | RecMutex & | mutex,
|  | TryLock |
| ) |  |
| inline

## ◆ Lock() [4/4]

Glib::Threads::RecMutex::Lock::Lock | ( | const RecMutex::Lock & |  | ) |
| delete

## ◆ ~Lock()

Glib::Threads::RecMutex::Lock::~Lock | ( |  | ) |
| inline

## Member Function Documentation

## ◆ acquire()

void Glib::Threads::RecMutex::Lock::acquire | ( |  | ) |
| inline

## ◆ locked()

bool Glib::Threads::RecMutex::Lock::locked | ( |  | ) | const
| inline

## ◆ operator=()

RecMutex::Lock & Glib::Threads::RecMutex::Lock::operator= | ( | const RecMutex::Lock & |  | ) |
| delete

## ◆ release()

void Glib::Threads::RecMutex::Lock::release | ( |  | ) |
| inline

## ◆ try_acquire()

bool Glib::Threads::RecMutex::Lock::try_acquire | ( |  | ) |
| inline