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

◆ try_acquire_processing()

bool MayaFlux::Buffers::VKBuffer::try_acquire_processing ( )
inlineoverridevirtual

Try to acquire processing lock for this buffer.

Returns
True if lock acquired, false if already processing.

Uses an atomic flag to guard concurrent processing attempts.

Implements MayaFlux::Buffers::Buffer.

Definition at line 193 of file VKBuffer.hpp.

194 {
195 bool expected = false;
196 return m_is_processing.compare_exchange_strong(expected, true,
197 std::memory_order_acquire, std::memory_order_relaxed);
198 }
std::atomic< bool > m_is_processing
Definition VKBuffer.hpp:444