Renamed EventNotifer to EventFdNotifier and employed new NotifierInterface

This commit is contained in:
Nav
2022-04-15 22:05:50 +01:00
parent 3509d0de78
commit ec060a469b
14 changed files with 100 additions and 94 deletions

View File

@@ -15,7 +15,7 @@
#include "src/EventManager/Events/Events.hpp"
#include "src/Helpers/SyncSafe.hpp"
#include "src/Helpers/EventNotifier.hpp"
#include "src/Helpers/NotifierInterface.hpp"
namespace Bloom
{
@@ -92,11 +92,11 @@ namespace Bloom
*/
void registerEvent(Events::SharedGenericEventPointer event);
void setInterruptEventNotifier(EventNotifier* interruptEventNotifier) {
void setInterruptEventNotifier(NotifierInterface* interruptEventNotifier) {
this->interruptEventNotifier = interruptEventNotifier;
}
[[nodiscard]] EventNotifier* getInterruptEventNotifier() {
[[nodiscard]] NotifierInterface* getInterruptEventNotifier() {
return this->interruptEventNotifier;
}
@@ -370,7 +370,7 @@ namespace Bloom
SyncSafe<std::map<Events::EventType, std::vector<std::function<void(const Events::Event&)>>>> eventTypeToCallbacksMapping;
SyncSafe<std::set<Events::EventType>> registeredEventTypes;
EventNotifier* interruptEventNotifier = nullptr;
NotifierInterface* interruptEventNotifier = nullptr;
std::vector<Events::SharedGenericEventPointer> getEvents();
};