mirror of
https://github.com/EQEmu/Server.git
synced 2026-12-03 14:22:17 +00:00
[Code] SharedTaskManager Global to Singleton Cleanup (#4930)
Co-authored-by: Chris Miles <akkadius1@gmail.com>
This commit is contained in:
1 parent
947795f1d1
commit
c5ab35e4af
7 files changed
+42
-42
No files matched your search
@@ -102,6 +102,12 @@ public:
|
||||
void SetSharedTasks(const std::vector<SharedTask> &shared_tasks);
|
||||
|
||||
SharedTaskManager * PurgeExpiredSharedTasks();
|
||||
|
||||
static SharedTaskManager* Instance()
|
||||
{
|
||||
static SharedTaskManager instance;
|
||||
return &instance;
|
||||
}
|
||||
protected:
|
||||
// reference to database
|
||||
Database *m_database;
|
||||
|
||||
Reference in new issue
Block a user