MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ set_skip_while_pending()

void MayaFlux::Buffers::DataReadProcessor::set_skip_while_pending ( bool  skip)
inlinenoexcept

Drop read_* calls while a read is armed or unresolved.

By default a newer read replaces an armed one that has not run yet. With this set the call is dropped instead, so a caller that re-arms every tick never displaces a read still in flight. Best effort across the brief moment a read is running. Set it and call read_* from the consuming thread.

Definition at line 97 of file DataReadProcessor.hpp.