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

◆ is_used_by_channel()

bool MayaFlux::Nodes::Node::is_used_by_channel ( uint32_t  channel_id) const

Checks if the node is currently used by a specific channel.

Parameters
channel_idThe ID of the channel to check

Definition at line 51 of file Node.cpp.

52{
53 if (channel_id >= 32)
54 return false;
55
56 auto channel_bit = static_cast<uint32_t>((0x0ffffffff) & (1ULL << (uint64_t)channel_id));
57 uint32_t active_mask = m_active_channels_mask.load(std::memory_order_acquire);
58 return (active_mask & channel_bit) != 0;
59}
std::atomic< uint32_t > m_active_channels_mask
Bitmask tracking which channels are currently using this node.
Definition Node.hpp:483

References m_active_channels_mask.