1
0
mirror of synced 2024-12-21 20:15:55 +01:00
ImHex/lib/libimhex/source/api/event_manager.cpp

24 lines
536 B
C++

#include <hex/api/event_manager.hpp>
namespace hex {
std::multimap<void *, EventManager::EventList::iterator>& EventManager::getTokenStore() {
static std::multimap<void *, EventManager::EventList::iterator> tokenStore;
return tokenStore;
}
EventManager::EventList& EventManager::getEvents() {
static EventManager::EventList events;
return events;
}
std::recursive_mutex& EventManager::getEventMutex() {
static std::recursive_mutex mutex;
return mutex;
}
}