MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Portal::Graphics::SlotLease Class Reference

A claim on one slot of a SlotArena for as long as the claim exists. More...

#include <SlotMachine.hpp>

Collaboration diagram for MayaFlux::Portal::Graphics::SlotLease:

Public Member Functions

 operator bool () const noexcept
SlotLease & operator= (const SlotLease &other)
SlotLease & operator= (SlotLease &&other) noexcept
 SlotLease ()=default
 SlotLease (const SlotLease &other)
 SlotLease (SlotLease &&other) noexcept=default
 SlotLease (std::shared_ptr< std::atomic< uint32_t > > uses)
 ~SlotLease ()

Private Member Functions

void release () noexcept

Private Attributes

std::shared_ptr< std::atomic< uint32_t > > m_uses

Detailed Description

A claim on one slot of a SlotArena for as long as the claim exists.

Copies and moves share the claim; the slot is in use until every copy is gone. A command buffer that pushed the slot's range holds one until its submission completes, so the slot cannot be reused while the GPU may read it.

Definition at line 21 of file SlotMachine.hpp.


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