MayaFlux 0.2.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 60 of file InputNode.cpp.

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

References m_has_new_input.