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

◆ unregister_channel_usage()

void MayaFlux::Nodes::Node::unregister_channel_usage ( uint32_t  channel_id)

Removes the specified channel from the usage tracking.

Parameters
channel_idThe ID of the channel to unregister

Definition at line 55 of file Node.cpp.

56{
57 if (channel_id >= 32)
58 return;
59 auto channel_bit = static_cast<uint32_t>((0x0ffffffff) & (1ULL << (uint64_t)channel_id));
60
61 m_active_channels_mask.fetch_and(~channel_bit, std::memory_order_acq_rel);
62 m_pending_reset_mask.fetch_and(~channel_bit, std::memory_order_acq_rel);
63}
std::atomic< uint32_t > m_active_channels_mask
Bitmask tracking which channels are currently using this node.
Definition Node.hpp:732
std::atomic< uint32_t > m_pending_reset_mask
Bitmask tracking which channels have requested a reset.
Definition Node.hpp:741

References m_active_channels_mask, and m_pending_reset_mask.