home *** CD-ROM | disk | FTP | other *** search
/ C/C++ User's Journal & Wi…eveloper's Journal Tools / C-C__Users_Journal_and_Windows_Developers_Journal_Tools_1997.iso / smxdemo / smxpp / dprocess.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-16  |  1.4 KB  |  51 lines

  1. /*************************************************************************
  2. *  Copyright (c) 1989-1993 Micro Digital Associates, Inc.
  3. *                  All Rights Reserved.
  4. *
  5. *  MODULE: DPROCESS.HPP  Process class.
  6. *
  7. *  DESRIPTION:
  8. *              This class is used to build the process for the dos
  9. *              demo. It contains the tasks that are needed to run the demo.
  10. *              By using a process class the objects that are required
  11. *              for a particular job are contained in one place. Also
  12. *              the interface for that job ( process ) can be controled.
  13. *
  14. *  AUTHOR: Rick Evans 
  15. *
  16. *
  17. *  UPDATE LOG
  18. *
  19. *************************************************************************/
  20. #ifndef  __DPROCESS_HPP
  21. #define __DPROCESS_HPP  1
  22.  
  23. #include <process.hpp>
  24. #include <task.hpp>
  25.  
  26. //Class
  27. class DProcess:  public Process
  28. {
  29. public:
  30.    Task     DiskDemo;
  31.    Task     ErrGen;
  32.    Task     OpCon;
  33.    Task     Preempter;
  34.    Task     Sleeper;
  35.  
  36.    //-------- Constructors --------
  37.    DProcess(   const void(*Task1)(), const void(*Task2)(), 
  38.                const void(*Task3)(), const void(*Task4)(), 
  39.                const void(*Task5)() );
  40.             
  41.  
  42.    //---------- Methods -----------
  43.    virtual BOOLEAN   Start();
  44.    virtual BOOLEAN   ShutDown();
  45.    //--------- Destructor ---------
  46.    ~DProcess() { ShutDown(); }
  47.  
  48. };
  49. #endif
  50. //EOF
  51.