extensions/threader/extension.cpp
author David Anderson <dvander@alliedmods.net>
Fri Jun 22 17:24:48 2007 +0000 (2007-06-22)
changeset 1002 786f5abf93ea
parent 757 b799caa9a190
permissions -rw-r--r--
fixed a bug where the "keyOnly" parameter to KvGotoNextKey was read backwards
     1 /**
     2  * vim: set ts=4 :
     3  * ===============================================================
     4  * SourceMod Threading Extension
     5  * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved.
     6  * ===============================================================
     7  *
     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.
    16  * 
    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.
    20  *
    21  * Version: $Id$
    22  */
    23 
    24 #include "extension.h"
    25 #include "thread/ThreadSupport.h"
    26 
    27 /**
    28  * @file extension.cpp
    29  * @brief Implements threader extension code.
    30  */
    31 
    32 Sample g_Sample;
    33 MainThreader g_Threader;
    34 
    35 SMEXT_LINK(&g_Sample);
    36 
    37 bool Sample::SDK_OnLoad(char *error, size_t maxlength, bool late)
    38 {
    39 	g_pShareSys->AddInterface(myself, &g_Threader);
    40 
    41 	return true;
    42 }