/** SGX

The   sss    gggg x   x   
     s      g      x x    Engine
      sss   g  gg   x
         s  g   g  x x          Copyright 1995-2009.
     ssss    gggg x   x         Steven Goodwin. All Rights Reserved.
    
This version has been released under the GNU Public License v2.0.

Please see the license files for details.

File: sgx/include/sgx/core/threading/threadmanager.hpp

*/

#ifndef SGX_CORE_THREADING_THREADMANAGER_HPP
#define SGX_CORE_THREADING_THREADMANAGER_HPP	1

class CSGXThreadManager
{ 
public:
    static  CSGXThreadManager    *get();
    
	
	virtual CSGXThread *	create(CSGXThread *pThread) = 0;
	virtual CSGXThread *	create(cbThreadFunction cb, void *pUserData=NULL, sgxCPU *pCPU=NULL) = 0;
	virtual void		destroy(CSGXThread *pThread) = 0;

protected:
	static CSGXThreadManager *ms_pSingleton;
};

#endif /* SGX_CORE_THREADING_THREADMANAGER_HPP */

