3 * ===============================================================
4 * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved.
5 * ===============================================================
7 * This file is not open source and may not be copied without explicit
8 * written permission of AlliedModders LLC. This file may not be redistributed
9 * in whole or significant part.
10 * For information, see LICENSE.txt or http://www.sourcemod.net/license.php
15 #include "ThreadSupport.h"
16 #include "sm_globals.h"
19 #if defined PLATFORM_POSIX
20 #include "thread/PosixThreads.h"
21 #elif defined PLATFORM_WINDOWS
22 #include "thread/WinThreads.h"
25 MainThreader g_MainThreader;
26 IThreader *g_pThreader = &g_MainThreader;
28 class RegThreadStuff : public SMGlobalClass
31 void OnSourceModAllInitialized()
33 g_ShareSys.AddInterface(NULL, g_pThreader);