Mesen-SX/Core/NotificationManager.h
NovaSquirrel c0e249e993 Revert "Merge branch 'reformat_code'"
This reverts commit daf3b57e89, reversing
changes made to 7a6e0b7d77.
2021-03-10 11:13:28 -05:00

18 lines
498 B
C++

#pragma once
#include "stdafx.h"
#include "INotificationListener.h"
#include "../Utilities/SimpleLock.h"
class NotificationManager
{
private:
SimpleLock _lock;
vector<weak_ptr<INotificationListener>> _listenersToAdd;
vector<weak_ptr<INotificationListener>> _listeners;
void CleanupNotificationListeners();
public:
void RegisterNotificationListener(shared_ptr<INotificationListener> notificationListener);
void SendNotification(ConsoleNotificationType type, void* parameter = nullptr);
};