mirror of
https://github.com/reactos/reactos.git
synced 2024-11-04 22:00:55 +00:00
1e3d5d70e9
svn path=/trunk/; revision=26033
34 lines
599 B
C++
34 lines
599 B
C++
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS HTTP Daemon
|
|
* FILE: include/thread.h
|
|
*/
|
|
#ifndef __THREAD_H
|
|
#define __THREAD_H
|
|
|
|
#include <windows.h>
|
|
|
|
class CThread;
|
|
|
|
struct ThreadData {
|
|
CThread *ClassPtr;
|
|
HANDLE hFinished;
|
|
};
|
|
|
|
class CThread {
|
|
public:
|
|
CThread();
|
|
virtual ~CThread();
|
|
BOOL PostMessage(UINT Msg, WPARAM wParam, LPARAM lParam);
|
|
virtual void Execute();
|
|
virtual void Terminate();
|
|
BOOL Terminated();
|
|
protected:
|
|
BOOL bTerminated;
|
|
DWORD dwThreadId;
|
|
HANDLE hThread;
|
|
ThreadData Data;
|
|
};
|
|
typedef CThread *LPCThread;
|
|
|
|
#endif /* __THREAD_H */
|