event/*Monitor: add method GetEventLoop()
This commit is contained in:
@@ -66,6 +66,10 @@ public:
|
||||
|
||||
~SocketMonitor();
|
||||
|
||||
EventLoop &GetEventLoop() {
|
||||
return loop;
|
||||
}
|
||||
|
||||
bool IsDefined() const {
|
||||
return fd >= 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user