1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#ifndef _iowatch_h #define _iowatch_h #include "bool.h" class IOWatch { public: IOWatch(); ~IOWatch(); void addIO(int a); void remIO(int a); bool watch(long secs, long usecs); private: enum consts { MAX_IO = 20 }; int *io; int num; }; #endif