home *** CD-ROM | disk | FTP | other *** search
/ Informática Multimedia: Special Games / INFESPGAMES.mdf / os2 / ribble / support / cthread.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-04  |  670 b   |  32 lines

  1. #include <CSupport.h>
  2.  
  3. #ifndef _CThread_h
  4. #define _CThread_h
  5.  
  6. class CSExport CThread
  7. {
  8. #if defined(__BORLANDC__) || defined(__WATCOMC__)
  9.         friend void CThreadMain(PVOID arg);
  10. #else
  11.         friend void _Optlink CThreadMain(PVOID arg);
  12. #endif
  13.  
  14. public:
  15.         CThread(void);
  16.         virtual ~CThread();
  17.         void Run(void);
  18.         TID QueryTID(void);
  19.         virtual void ThreadProc(void) = 0;
  20.         void Wait(void);
  21.         void Kill(void);
  22.  
  23. private:
  24.         CThread(const CThread&)             {}
  25.         CThread& operator=(const CThread&)  { return *this; }
  26.         int threadID;
  27.         HAB hab;
  28.         HMQ hmq;
  29. };
  30.  
  31. #endif
  32.