| Index: src/plugin/PluginClass.cpp |
| =================================================================== |
| --- a/src/plugin/PluginClass.cpp |
| +++ b/src/plugin/PluginClass.cpp |
| @@ -609,7 +609,9 @@ |
| std::map<DWORD,CPluginClass*>::const_iterator it = s_threadInstances.find(GetCurrentThreadId()); |
| if (it == s_threadInstances.end()) |
| { |
| + s_criticalSectionLocal.Lock(); |
|
Eric
2015/03/16 12:19:44
The atomic action required here needs to surround
|
| s_threadInstances[::GetCurrentThreadId()] = this; |
| + s_criticalSectionLocal.Unlock(); |
| if (!m_isInitializedOk) |
| { |
| m_isInitializedOk = true; |