MayaFlux 0.5.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 65 of file Node.cpp.

66{
67 if (channel_id >= 32)
68 return false;
69
70 auto channel_bit = static_cast<uint32_t>((0x0ffffffff) & (1ULL << (uint64_t)channel_id));
71 uint32_t active_mask = m_active_channels_mask.load(std::memory_order_acquire);
72 return (active_mask & channel_bit) != 0;
73}
std::atomic< uint32_t > m_active_channels_mask
Bitmask tracking which channels are currently using this node.
Definition Node.hpp:732

References m_active_channels_mask.