Audacity 3.2.0
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 70 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 72 of file ClientDataHelpers.h.

Member Function Documentation

◆ lock()

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

Definition at line 73 of file ClientDataHelpers.h.

73{ return Lock{ *this }; }

The documentation for this struct was generated from the following file: