Browse Subversion Repository
Contents of /CopalPro/KThread.h
Parent Directory
| Revision Log
Revision 1 -
( show annotations)
( download)
( as text)
Thu Jul 28 09:05:52 2011 UTC
(12 years, 9 months ago)
by kaityo
File MIME type: text/x-chdr
File size: 818 byte(s)
First Commit
| 1 |
//--------------------------------------------------------------------------- |
| 2 |
// プロセス監視スレッド |
| 3 |
//--------------------------------------------------------------------------- |
| 4 |
#ifndef KThreadH |
| 5 |
#define KThreadH |
| 6 |
//--------------------------------------------------------------------------- |
| 7 |
#include <Classes.hpp> |
| 8 |
//--------------------------------------------------------------------------- |
| 9 |
class KThread : public TThread { |
| 10 |
private: |
| 11 |
|
| 12 |
HANDLE prochandle; |
| 13 |
bool Signal; |
| 14 |
|
| 15 |
protected: |
| 16 |
void __fastcall Execute(); |
| 17 |
public: |
| 18 |
|
| 19 |
void SetHandle(HANDLE h) { |
| 20 |
prochandle = h; |
| 21 |
}; |
| 22 |
void StopSignal(void) { |
| 23 |
Signal = true; |
| 24 |
}; |
| 25 |
|
| 26 |
__fastcall KThread(bool CreateSuspended); |
| 27 |
__fastcall ~KThread(void); |
| 28 |
}; |
| 29 |
//--------------------------------------------------------------------------- |
| 30 |
#endif |
|