MayaFlux 1.0.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 61 of file Node.cpp.

62{
63 if (channel_id >= 32)
64 return;
65 auto channel_bit = static_cast<uint32_t>((0x0ffffffff) & (1ULL << (uint64_t)channel_id));
66
67 m_active_channels_mask.fetch_and(~channel_bit, std::memory_order_acq_rel);
68 m_pending_reset_mask.fetch_and(~channel_bit, std::memory_order_acq_rel);
69}
std::atomic< uint32_t > m_active_channels_mask
Bitmask tracking which channels are currently using this node.
Definition Node.hpp:753
std::atomic< uint32_t > m_pending_reset_mask
Bitmask tracking which channels have requested a reset.
Definition Node.hpp:762

References m_active_channels_mask, and m_pending_reset_mask.