FDWatchers are non copiable and non movable
This commit is contained in:
parent
ba6f3b833b
commit
2a23ce1987
|
@ -19,6 +19,8 @@ public:
|
||||||
int fd() const { return m_fd; }
|
int fd() const { return m_fd; }
|
||||||
void run() { m_callback(*this); }
|
void run() { m_callback(*this); }
|
||||||
private:
|
private:
|
||||||
|
FDWatcher(const FDWatcher&) = delete;
|
||||||
|
|
||||||
int m_fd;
|
int m_fd;
|
||||||
Callback m_callback;
|
Callback m_callback;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user