Audacity  3.0.3
Public Types | Public Member Functions | List of all members
ClientData::Lockable< Object, NonrecursiveLocking > Struct Template Reference

Specialization for real locking with std::mutex. More...

#include <ClientDataHelpers.h>

Inheritance diagram for ClientData::Lockable< Object, NonrecursiveLocking >:
[legend]
Collaboration diagram for ClientData::Lockable< Object, NonrecursiveLocking >:
[legend]

Public Types

using Lock = std::unique_lock< std::mutex >
 

Public Member Functions

Lock lock () const
 

Detailed Description

template<typename Object>
struct ClientData::Lockable< Object, NonrecursiveLocking >

Specialization for real locking with std::mutex.

Definition at line 69 of file ClientDataHelpers.h.

Member Typedef Documentation

◆ Lock

template<typename Object >
using ClientData::Lockable< Object, NonrecursiveLocking >::Lock = std::unique_lock< std::mutex >

Definition at line 71 of file ClientDataHelpers.h.

Member Function Documentation

◆ lock()

template<typename Object >
Lock ClientData::Lockable< Object, NonrecursiveLocking >::lock ( ) const
inline

Definition at line 72 of file ClientDataHelpers.h.

72 { return Lock{ *this }; }

The documentation for this struct was generated from the following file:
ClientData::Lockable< Object, NonrecursiveLocking >::Lock
std::unique_lock< std::mutex > Lock
Definition: ClientDataHelpers.h:71