Control-thread owner for resources prepared off the audio thread and read from the audio thread through an atomic raw pointer.
More...
template<typename T, std::size_t RetireCapacity>
class pulp::runtime::RealtimeResourceSlot< T, RetireCapacity >
Control-thread owner for resources prepared off the audio thread and read from the audio thread through an atomic raw pointer.
A single non-RT owner serializes publish*() and reclaim_retired(). The audio thread only calls get(), which is a single acquire load and does not allocate, lock, wait, or take ownership. Because get() returns an unpinned raw pointer, the owner must call reclaim_retired() only after a host/block boundary or other grace point proves callbacks that may have loaded an old pointer have left it.