home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_11_03 / 1103076a < prev    next >
Text File  |  1993-01-05  |  319b  |  17 lines

  1. // COR.HPP
  2. typedef    unsigned int    word;
  3.  
  4. class coroutine {
  5. friend void startProcess(void);
  6. friend void resume(coroutine*);
  7.     word stkSegment,stkOffset,stkSize;
  8.     virtual void main() {}
  9.     virtual void superMain() {}
  10. public:
  11.     coroutine(void);
  12.     ~coroutine(void);
  13. };
  14. void resume(coroutine*);
  15. void detach(void);
  16.  
  17.