mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Move named channel code to the thread module instead of having a static map. Fixes issue #1464.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user