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

◆ take_pending()

std::shared_ptr< SerialDevice::Pending > MayaFlux::Core::SerialDevice::take_pending ( const std::shared_ptr< Pending > & only = {})
private

Definition at line 238 of file SerialDevice.cpp.

239{
240 std::shared_ptr<Pending> taken;
241 m_pending.update([&](std::shared_ptr<Pending>& slot) {
242 taken.reset();
243 if (!slot || (only && slot != only)) {
244 return false;
245 }
246 taken = std::move(slot);
247 slot.reset();
248 return true;
249 });
250 return taken;
251}
Memory::SnapshotCell< std::shared_ptr< Pending > > m_pending

References m_pending, and take_pending().

Referenced by close(), complete_request(), handle_state(), take_pending(), and ~SerialDevice().

Here is the call graph for this function:
Here is the caller graph for this function: