Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::runtime::AliveToken::Lease Class Reference

A temporary lease proving that an owner-backed callback may safely use its referenced state. More...

#include <alive_token.hpp>

Public Member Functions

 Lease () noexcept=default
 Lease (const Lease &)=delete
Lease & operator= (const Lease &)=delete
 Lease (Lease &&other) noexcept
Lease & operator= (Lease &&other) noexcept
 ~Lease ()
 operator bool () const noexcept
void reset () noexcept
 Release this callback's quiescence lease early.

Friends

class AliveToken

Detailed Description

A temporary lease proving that an owner-backed callback may safely use its referenced state.

The owner-side retire() waits until all leases have been released, so teardown cannot destroy that state in the middle of a leased callback.

Constructor & Destructor Documentation

◆ Lease() [1/3]

pulp::runtime::AliveToken::Lease::Lease ( )
defaultnoexcept

◆ Lease() [2/3]

pulp::runtime::AliveToken::Lease::Lease ( const Lease & )
delete

◆ Lease() [3/3]

pulp::runtime::AliveToken::Lease::Lease ( Lease && other)
inlinenoexcept

◆ ~Lease()

pulp::runtime::AliveToken::Lease::~Lease ( )
inline

Member Function Documentation

◆ operator bool()

pulp::runtime::AliveToken::Lease::operator bool ( ) const
inlineexplicitnoexcept

◆ operator=() [1/2]

Lease & pulp::runtime::AliveToken::Lease::operator= ( const Lease & )
delete

◆ operator=() [2/2]

Lease & pulp::runtime::AliveToken::Lease::operator= ( Lease && other)
inlinenoexcept

◆ reset()

void pulp::runtime::AliveToken::Lease::reset ( )
inlinenoexcept

Release this callback's quiescence lease early.

◆ AliveToken

friend class AliveToken
friend

The documentation for this class was generated from the following file:
  • /home/runner/work/pulp/pulp/core/runtime/include/pulp/runtime/alive_token.hpp