Move named channel code to the thread module instead of having a static map. Fixes issue #1464.

This commit is contained in:
Alex Szpakowski
2018-12-31 22:36:36 -04:00
parent 364718fa46
commit 19890a65c3
5 changed files with 16 additions and 60 deletions
+6
View File
@@ -23,6 +23,7 @@
// STL
#include <string>
#include <map>
// LOVE
#include "common/Data.h"
@@ -51,6 +52,11 @@ public:
virtual const char *getName() const;
virtual ModuleType getModuleType() const { return M_THREAD; }
private:
std::map<std::string, StrongRef<Channel>> namedChannels;
MutexRef namedChannelMutex;
}; // ThreadModule
} // thread