home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C++ / Applications / Nuntius 1.2 / src / Nuntius / UThreadBuiltIn.h < prev    next >
Encoding:
Text File  |  1994-03-06  |  701 b   |  33 lines  |  [TEXT/MPS ]

  1. // Copyright © 1993 Peter Speck (speck@dat.ruc.dk).  All rights reserved.
  2. // UThreadBuiltIn.h
  3.  
  4. #ifndef __UTHREAD__
  5. #include "UThread.h"
  6. #endif
  7.  
  8. class TThreadBuiltIn : public TThread
  9. {
  10.     public:
  11.         void StartThread();
  12.  
  13.         virtual void DumpDebugDescription();
  14.  
  15.         TThreadBuiltIn();
  16.         virtual pascal void Initialize();
  17.         void IThreadBuiltIn(Boolean isMainThread, const char *debugDoingWhat);
  18.         virtual void Die();
  19.         
  20.     protected:
  21.         virtual pascal void Free(); // virtual ~PThreadBuiltIn();
  22.  
  23.         virtual void SwapThread();
  24.         void OverwriteWithThisThread();
  25.  
  26.     private:
  27.         Handle fStackH;        
  28. };
  29.  
  30. TThread *CreateMainThreadBuiltIn();
  31.  
  32. TThread *ExecuteInNewThreadBuiltIn(TCommand *command, const char *debugDoingWhat);
  33.