1.1 --- a/core/GameConfigs.h Sun Feb 01 20:38:59 2009 -0500
1.2 +++ b/core/GameConfigs.h Mon Feb 02 15:41:25 2009 -0500
1.3 @@ -39,6 +39,7 @@
1.4 #include "sm_globals.h"
1.5 #include "sm_memtable.h"
1.6 #include "sm_trie_tpl.h"
1.7 +#include "ThreadSupport.h"
1.8
1.9 using namespace SourceMod;
1.10 using namespace SourceHook;
1.11 @@ -110,6 +111,8 @@
1.12 HandleError *err);
1.13 void AddUserConfigHook(const char *sectionname, ITextListener_SMC *listener);
1.14 void RemoveUserConfigHook(const char *sectionname, ITextListener_SMC *listener);
1.15 + void AcquireLock();
1.16 + void ReleaseLock();
1.17 public: //SMGlobalClass
1.18 void OnSourceModStartup(bool late);
1.19 void OnSourceModAllInitialized();
1.20 @@ -117,6 +120,7 @@
1.21 private:
1.22 List<CGameConfig *> m_cfgs;
1.23 Trie *m_pLookup;
1.24 + IMutex *m_FileLock;
1.25 public:
1.26 KTrie<ITextListener_SMC *> m_customHandlers;
1.27 };