aboutsummaryrefslogtreecommitdiffstats
path: root/lib/iowatch.h
blob: 18c0d44f158ff056d08b71e1bc215e3d1eca971d (plain)
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