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

◆ unregister_frame_hook()

void MayaFlux::Core::WindowManager::unregister_frame_hook ( const std::string &  name)

Unregister a previously registered frame hook.

Parameters
nameHook identifier to remove

Definition at line 196 of file WindowManager.cpp.

197{
198 std::lock_guard<std::mutex> lock(m_hooks_mutex);
199 m_frame_hooks.erase(name);
200}
std::mutex m_hooks_mutex
Mutex for protecting m_windows and m_window_lookup.
std::unordered_map< std::string, std::function< void()> > m_frame_hooks
Calls all registered frame hooks.

References m_frame_hooks, and m_hooks_mutex.