diff options
author | Benoit Foucher <benoit@zeroc.com> | 2014-10-15 08:20:15 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2014-10-15 08:20:15 +0200 |
commit | 4c6a4a6e77eeb513e2031912698a1fa839d9065a (patch) | |
tree | fdfad1d1dceb1fcc614da334b7058efc99925703 /cpp/src/Ice/Selector.h | |
parent | ICE-5739 missing AMD test in c++ optional (diff) | |
download | ice-4c6a4a6e77eeb513e2031912698a1fa839d9065a.tar.bz2 ice-4c6a4a6e77eeb513e2031912698a1fa839d9065a.tar.xz ice-4c6a4a6e77eeb513e2031912698a1fa839d9065a.zip |
Fixed ICE-5454: close acceptor on adapter deactivation
Diffstat (limited to 'cpp/src/Ice/Selector.h')
-rw-r--r-- | cpp/src/Ice/Selector.h | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/cpp/src/Ice/Selector.h b/cpp/src/Ice/Selector.h index 331814b16f7..196d96ccf54 100644 --- a/cpp/src/Ice/Selector.h +++ b/cpp/src/Ice/Selector.h @@ -46,12 +46,11 @@ class SelectorTimeoutException struct SelectEvent { - SelectEvent(IceInternal::EventHandler* handler, SocketOperation status) : - handler(handler), status(status) + SelectEvent(EventHandler* handler, SocketOperation status) : handler(handler), status(status) { } - IceInternal::EventHandler* handler; + EventHandler* handler; SocketOperation status; }; @@ -63,13 +62,13 @@ public: void destroy(); - void initialize(IceInternal::EventHandler*); - void update(IceInternal::EventHandler*, SocketOperation, SocketOperation); - void finish(IceInternal::EventHandler*); + void initialize(EventHandler*); + void update(EventHandler*, SocketOperation, SocketOperation); + void finish(EventHandler*); - IceInternal::EventHandler* getNextHandler(SocketOperation&, int); + EventHandler* getNextHandler(SocketOperation&, int); - void completed(IceInternal::EventHandler*, SocketOperation); + void completed(EventHandler*, SocketOperation); private: @@ -121,11 +120,11 @@ public: void update(EventHandler*, SocketOperation, SocketOperation); void enable(EventHandler*, SocketOperation); void disable(EventHandler*, SocketOperation); - void finish(EventHandler*); + bool finish(EventHandler*, bool); #if defined(ICE_USE_KQUEUE) void updateSelector(); -#endif +#endif void startSelect() @@ -180,7 +179,7 @@ public: void update(EventHandler*, SocketOperation, SocketOperation); void enable(EventHandler*, SocketOperation); void disable(EventHandler*, SocketOperation); - void finish(EventHandler*); + bool finish(EventHandler*, bool); void startSelect(); void finishSelect(); |