From 34b70b0b46e34a73308a4034cc9b1c70209b9eb4 Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Mon, 28 Jun 1999 08:56:01 +0000 Subject: First import. --- lib/iowatch.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 lib/iowatch.h (limited to 'lib/iowatch.h') diff --git a/lib/iowatch.h b/lib/iowatch.h new file mode 100644 index 0000000..18c0d44 --- /dev/null +++ b/lib/iowatch.h @@ -0,0 +1,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 -- cgit v1.2.3