Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / ACE / examples / APG / Timers / PCB.h
blob97e64f69c59a395742750f80b3899f42a8272653
1 /* -*- C++ -*- */
2 #if !defined(PCB_H)
3 #define PCB_H
5 // Listing 1 code/ch20
6 class PCB
8 public:
9 PCB ();
10 virtual ~PCB ();
12 // Set/get the timer id that is being handled by this instance.
13 void setID (long timerID);
14 long getID () const;
16 // Handle a timeout event, cancel, and close.
17 virtual int handleEvent (const void *arg);
18 virtual int handleCancel ();
19 virtual int handleClose ();
21 private:
22 long timerID_;
23 int count_;
25 // Listing 1
27 #endif /*PCB_H*/