|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| bool MayaFlux::Memory::seqlock_read_void | ( | const Seqlock & | lock, |
| uint32_t | max_attempts, | ||
| Fn && | fn | ||
| ) |
Invoke a void read functor under a Seqlock with a bounded retry count.
Same semantics as seqlock_read but for functors with no return value. Returns true if a clean read was achieved within max_attempts, false if the limit was exhausted.
| Fn | Callable type with void return, must satisfy std::invocable<Fn>. |
| lock | The Seqlock guarding the data region. |
| max_attempts | Maximum attempts; 0 = unbounded. |
| fn | Functor that reads the guarded region (side-effect only). |
Definition at line 222 of file SeqLock.hpp.
References MayaFlux::Memory::Seqlock::read_begin(), and MayaFlux::Memory::Seqlock::read_retry().
Here is the call graph for this function: