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

Constructor & Destructor Documentation

◆ Locked()

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

Definition at line 87 of file ClientDataHelpers.h.

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

Member Data Documentation

◆ mObject

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

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