extensions/threader/extension.cpp
author David Anderson <dvander@alliedmods.net>
Fri Feb 16 03:47:10 2007 +0000 (2007-02-16)
changeset 501 e209a7296936
parent 373 bf3335acefdd
child 757 b799caa9a190
permissions -rw-r--r--
removed this potential feature, not useful enough
     1 /**
     2  * SourceMod Threading Extension, (C)2007 AlliedModders LLC.  All rights reserved.
     3  *
     4  * This program is free software; you can redistribute it and/or
     5  * modify it under the terms of the GNU General Public License
     6  * as published by the Free Software Foundation; either version 2
     7  * of the License, or (at your option) any later version.
     8  * This program is distributed in the hope that it will be useful,
     9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    11  * GNU General Public License for more details.
    12  * 
    13  * You should have received a copy of the GNU General Public License
    14  * along with this program; if not, write to the Free Software
    15  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    16  *
    17  * Version: $Id$
    18  */
    19 
    20 #include "extension.h"
    21 #include "thread/ThreadSupport.h"
    22 
    23 Sample g_Sample;
    24 MainThreader g_Threader;
    25 
    26 SMEXT_LINK(&g_Sample);
    27 
    28 bool Sample::SDK_OnLoad(char *error, size_t err_max, bool late)
    29 {
    30 	g_pShareSys->AddInterface(myself, &g_Threader);
    31 
    32 	return true;
    33 }