1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * InspIRCd: (C) 2002-2008 InspIRCd Development Team
6 * See: http://www.inspircd.org/wiki/index.php/Credits
8 * This program is free but copyrighted software; see
9 * the file COPYING for details.
11 * ---------------------------------------------------
14 #ifndef __THREADENGINE__
15 #define __THREADENGINE__
20 #include "inspircd_config.h"
25 class CoreExport Thread : public Extensible
29 virtual ~Thread() { };
30 virtual void Run() = 0;
33 class CoreExport ThreadEngine : public Extensible
37 InspIRCd* ServerInstance;
42 ThreadEngine(InspIRCd* Instance);
44 virtual ~ThreadEngine();
46 virtual bool Mutex(bool enable) = 0;
48 virtual void Run() = 0;
50 virtual void Create(Thread* thread_to_init) = 0;