Move-only reservation against one shared sampler-memory cap. More...
#include <sample_memory_governor.hpp>
Public Member Functions | |
| SampleMemoryLease ()=default | |
| SampleMemoryLease (const SampleMemoryLease &)=delete | |
| SampleMemoryLease & | operator= (const SampleMemoryLease &)=delete |
| SampleMemoryLease (SampleMemoryLease &&other) noexcept | |
| SampleMemoryLease & | operator= (SampleMemoryLease &&other) noexcept |
| ~SampleMemoryLease () | |
| operator bool () const noexcept | |
| SampleMemoryCategory | category () const noexcept |
| std::uint64_t | bytes () const noexcept |
| SampleMemoryGovernorEpoch | epoch () const noexcept |
| bool | issued_by (const SampleMemoryGovernorHandle &governor) const noexcept |
| void | reset () noexcept |
Friends | |
| class | SampleMemoryGovernor |
| class | SampleMemoryGovernorHandle |
Move-only reservation against one shared sampler-memory cap.
Leases may outlive the SampleMemoryGovernor facade that issued them. Reset and destruction release the reservation exactly once. All operations are background/control-thread operations; they are not audio-callback safe.
|
default |
|
delete |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlineexplicitnoexcept |
|
delete |
|
inlinenoexcept |
|
inlinenoexcept |
|
friend |
|
friend |