Audacity  3.0.3
Public Member Functions | Public Attributes | List of all members
ClientData::Locked< Lockable > Struct Template Reference

Decorated reference to a ClientData::Lockable, with a current lock on it. More...

#include <ClientDataHelpers.h>

Inheritance diagram for ClientData::Locked< Lockable >:
[legend]
Collaboration diagram for ClientData::Locked< Lockable >:
[legend]

Public Member Functions

 Locked (Lockable &object)
 

Public Attributes

LockablemObject
 

Detailed Description

template<typename Lockable>
struct ClientData::Locked< Lockable >

Decorated reference to a ClientData::Lockable, with a current lock on it.

Uses inheritance to benefit from the empty base class optimization if possible

Definition at line 83 of file ClientDataHelpers.h.

Constructor & Destructor Documentation

◆ Locked()

template<typename Lockable >
ClientData::Locked< Lockable >::Locked ( Lockable object)
inlineexplicit

Definition at line 86 of file ClientDataHelpers.h.

87  : Lockable::Lock( object.lock() )
88  , mObject( object )
89  {}

Member Data Documentation

◆ mObject

template<typename Lockable >
Lockable& ClientData::Locked< Lockable >::mObject

The documentation for this struct was generated from the following file:
ClientData::Locked::mObject
Lockable & mObject
Definition: ClientDataHelpers.h:90