diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:30 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:30 +0000 |
commit | 7a52d43a162b23d9e85e7b955e9b2c8e9caf550e (patch) | |
tree | 66a84b20d47f2269d8bdc6e0323f338763424d3a /ACE/examples/APG/Timers/PCB.h | |
parent | 0e49389337be86641451a5c36c24bf742fe97523 (diff) | |
download | ATCD-7a52d43a162b23d9e85e7b955e9b2c8e9caf550e.tar.gz |
Repo restructuring
Diffstat (limited to 'ACE/examples/APG/Timers/PCB.h')
-rw-r--r-- | ACE/examples/APG/Timers/PCB.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/ACE/examples/APG/Timers/PCB.h b/ACE/examples/APG/Timers/PCB.h new file mode 100644 index 00000000000..7fdb9d2d1cf --- /dev/null +++ b/ACE/examples/APG/Timers/PCB.h @@ -0,0 +1,29 @@ +/* -*- C++ -*- */ +// $Id$ + +#if !defined(PCB_H) +#define PCB_H + +// Listing 1 code/ch20 +class PCB +{ +public: + PCB (); + virtual ~PCB (); + + // Set/get the timer id that is being handled by this instance. + void setID (long timerID); + long getID (void) const; + + // Handle a timeout event, cancel, and close. + virtual int handleEvent (const void *arg); + virtual int handleCancel (void); + virtual int handleClose (void); + +private: + long timerID_; + int count_; +}; +// Listing 1 + +#endif /*PCB_H*/ |