/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/Editor/EditorEngineProcessFramework/LongOps/Implementation/LongOpManager.h
28 строк
1 KB
Jan Krassnigg
Documented the long ops code and improved the panel to not use a timer anymore
12 июн 2019, 02:29
12 июн 2019, 02:29
9b4de5b
Код
Авторство
О чём код?
#pragma once #include <EditorEngineProcessFramework/EditorEngineProcessFrameworkDLL.h> #include <EditorEngineProcessFramework/IPC/ProcessCommunicationChannel.h> #include <Foundation/Configuration/Singleton.h> #include <Foundation/Types/UniquePtr.h> #include <Foundation/Types/Uuid.h> /// \brief Base class with shared functionality for ezLongOpControllerManager and ezLongOpWorkerManager class EZ_EDITORENGINEPROCESSFRAMEWORK_DLL ezLongOpManager { public: /// \brief Needs to be called early to initialize the IPC channel to use. void Startup(ezProcessCommunicationChannel* pCommunicationChannel); /// \brief Call this to shut down the IPC communication. void Shutdown(); /// \brief Publicly exposed mutex for some special cases. mutable ezMutex m_Mutex; protected: virtual void ProcessCommunicationChannelEventHandler(const ezProcessCommunicationChannel::Event& e) = 0; ezProcessCommunicationChannel* m_pCommunicationChannel = nullptr; ezEvent<const ezProcessCommunicationChannel::Event&>::Unsubscriber m_Unsubscriber; };