www.pudn.com > DVBPlayer.rar > win32thread.h, change:2004-07-15,size:810b


 
 
#ifndef INCLUDED_WIN32_THREAD_H 
#define INCLUDED_WIN32_THREAD_H 
 
#include <windows.h> 
#include "config.h" 
#include "thread.h" 
 
 
class win32Thread : public Thread { 
 
public: 
	win32Thread(); 
	~win32Thread(); 
 
 
	virtual bool Create(thread_function function, void* arg, 
                            bool detach = false); 
	virtual void Destroy(); 
	virtual void Suspend(); 
	virtual void Resume(); 
	virtual void Join(); 
 
	virtual uint32 GetPriority() const; 
	virtual uint32 SetPriority(uint32 priority); 
 
    static unsigned long __stdcall internalThreadFunction(void* arg); 
 
    uint32 InternalThreadFunction();  
 
private: 
	HANDLE		    m_threadHandle;	 
	unsigned long	m_threadId; 
    thread_function m_function; 
    void*           m_arg; 
 
 
}; 
 
#endif /* _WIN32_THREAD_H */