SourceMod SDK  1.7
IThreader.h File Reference

Contains platform independent routines for threading. These tools should be considered deprecated. Use public/amtl/am-thread-utils.h. More...

#include <IShareSys.h>

Go to the source code of this file.

Classes

struct  SourceMod::ThreadParams
 Thread-specific parameters. More...
 
class  SourceMod::IThreadHandle
 Describes a handle to a thread. More...
 
class  SourceMod::IThread
 Handles a single thread's execution. More...
 
class  SourceMod::IThreadCreator
 Describes a thread creator. More...
 
class  SourceMod::IMutex
 Describes a simple locking mutex. More...
 
class  SourceMod::IEventSignal
 Describes a simple "condition variable"/signal lock. More...
 
class  SourceMod::IThreadWorker
 This is a "worker pool." A single thread places tasks in a queue. Each IThread is then a task, rather than its own separate thread. More...
 
class  SourceMod::IThreadWorkerCallbacks
 Describes thread worker callbacks. More...
 
class  SourceMod::IThreader
 Describes a threading system. More...
 

Macros

#define SMINTERFACE_THREADER_NAME   "IThreader"
 
#define SMINTERFACE_THREADER_VERSION   3
 

Enumerations

enum  ThreadFlags { Thread_Default = 0, SourceMod::Thread_AutoRelease = 1, SourceMod::Thread_CreateSuspended = 2 }
 Thread creation flags.
 
enum  ThreadPriority {
  ThreadPrio_Minimum = -8, ThreadPrio_Low = -3, ThreadPrio_Normal = 0, ThreadPrio_High = 3,
  ThreadPrio_Maximum = 8
}
 Specifies thread priority levels.
 
enum  ThreadState { Thread_Running = 0, Thread_Paused = 1, Thread_Done = 2 }
 The current state of a thread.
 
enum  WorkerState { Worker_Invalid = -3, Worker_Stopped = -2, Worker_Paused = -1, Worker_Running }
 Describes possible worker states.
 

Detailed Description

Contains platform independent routines for threading. These tools should be considered deprecated. Use public/amtl/am-thread-utils.h.

vim: set ts=4 :

SourceMod

Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 3.0, as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

As a special exception, AlliedModders LLC gives you permission to link the code of this program (as well as its derivative works) to "Half-Life 2," the "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software by the Valve Corporation. You must obey the GNU General Public License in all respects for all other code used. Additionally, AlliedModders LLC grants this exception to all derivative works. AlliedModders LLC defines further exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), or http://www.sourcemod.net/license.php.

Version: $Id$