glibmm 2.52.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Examples

- Class List
- Class Index
- Class Hierarchy
- Class Members

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

Glib::Threads::RecMutex::Lock::Lock | ( | RecMutex& | mutex | ) |
| inline explicit

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

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

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

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

## Member Function Documentation

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

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

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

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

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