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

◆ has_new_input()

bool MayaFlux::Nodes::Input::InputNode::has_new_input ( )

Check if new input has arrived since last check.

Returns
true if process_input() was called

Useful for polling-style checks. Calling this clears the flag.

Definition at line 58 of file InputNode.cpp.

59{
60 return m_has_new_input.exchange(false);
61}
std::atomic< bool > m_has_new_input

References m_has_new_input.