blob: 3fbb7845f13c30ea2853f5329337f50b5a18ae44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/**
* Copyright (C) ARM Limited 2013-2016. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef MONITOR_H
#define MONITOR_H
#include <sys/epoll.h>
class Monitor {
public:
Monitor();
~Monitor();
void close();
bool init();
bool add(const int fd);
int wait(struct epoll_event *const events, int maxevents, int timeout);
private:
int mFd;
// Intentionally unimplemented
Monitor(const Monitor &);
Monitor &operator=(const Monitor &);
};
#endif // MONITOR_H
|