3 * ===============================================================
4 * SourceMod Threading Extension
5 * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved.
6 * ===============================================================
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 #include "extension.h"
25 #include "thread/ThreadSupport.h"
29 * @brief Implements threader extension code.
33 MainThreader g_Threader;
35 SMEXT_LINK(&g_Sample);
37 bool Sample::SDK_OnLoad(char *error, size_t maxlength, bool late)
39 g_pShareSys->AddInterface(myself, &g_Threader);