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

◆ unregister_all_nodes()

void MayaFlux::Core::InputManager::unregister_all_nodes ( )

Unregister all nodes.

Definition at line 257 of file InputManager.cpp.

258{
259 std::lock_guard lock(m_registry_mutex);
260
261#ifdef MAYAFLUX_PLATFORM_MACOS
262 auto* old_list = m_registrations.load();
264 retire_list(old_list);
265#else
266 m_registrations.store(std::make_shared<const RegistrationList>());
267#endif
268
269 m_tracked_nodes.clear();
270
272 "Unregistered all InputNodes (Registry swapped to empty)");
273}
#define MF_DEBUG(comp, ctx,...)
std::vector< NodeRegistration > RegistrationList
std::atomic< std::shared_ptr< const RegistrationList > > m_registrations
std::vector< std::shared_ptr< Nodes::Input::InputNode > > m_tracked_nodes
To keep nodes alive.
@ InputManagement
Input management (Core::InputManager)
@ Core
Core engine, backend, subsystems.

References MayaFlux::Journal::Core, MayaFlux::Journal::InputManagement, m_registrations, m_registry_mutex, m_tracked_nodes, and MF_DEBUG.