|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
A claim on one slot of a SlotArena for as long as the claim exists. More...
#include <SlotMachine.hpp>
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 |
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.