/** SGX

The   sss    gggg x   x   
     s      g      x x    Engine
      sss   g  gg   x
         s  g   g  x x          Copyright 1995-2008.
     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: include/sgx/core/threading/threadmanager.hpp

*/

#ifndef SGX_CORE_THREADING_THREADMANAGER_HPP
#define SGX_CORE_THREADING_THREADMANAGER_HPP	1

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

protected:
	static CThreadManager *ms_pSingleton;
};

#endif /* SGX_CORE_THREADING_THREADMANAGER_HPP */

