MayaFlux 0.2.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 41 of file Node.cpp.

42{
43 if (channel_id >= 32)
44 return;
45 auto channel_bit = static_cast<uint32_t>((0x0ffffffff) & (1ULL << (uint64_t)channel_id));
46
47 m_active_channels_mask.fetch_and(~channel_bit, std::memory_order_acq_rel);
48 m_pending_reset_mask.fetch_and(~channel_bit, std::memory_order_acq_rel);
49}
std::atomic< uint32_t > m_active_channels_mask
Bitmask tracking which channels are currently using this node.
Definition Node.hpp:590
std::atomic< uint32_t > m_pending_reset_mask
Bitmask tracking which channels have requested a reset.
Definition Node.hpp:599

References m_active_channels_mask, and m_pending_reset_mask.