summaryrefslogtreecommitdiff
path: root/ACE/ace/Dev_Poll_Reactor.h
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2010-08-25 20:29:17 +0000
committerSteve Huston <shuston@riverace.com>2010-08-25 20:29:17 +0000
commit950fd2f35432527f789bd82bbe7691b2fb58a7cc (patch)
tree0b6b607f5b91cb9510d6856cae08b1668e1ef54e /ACE/ace/Dev_Poll_Reactor.h
parenta1e0de44c91b9c7cad1c3f4ab33af67936755f90 (diff)
downloadATCD-950fd2f35432527f789bd82bbe7691b2fb58a7cc.tar.gz
ChangeLogTag:Wed Aug 25 19:58:19 UTC 2010 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'ACE/ace/Dev_Poll_Reactor.h')
-rw-r--r--ACE/ace/Dev_Poll_Reactor.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/ACE/ace/Dev_Poll_Reactor.h b/ACE/ace/Dev_Poll_Reactor.h
index dadcf69035e..e2dc68961ab 100644
--- a/ACE/ace/Dev_Poll_Reactor.h
+++ b/ACE/ace/Dev_Poll_Reactor.h
@@ -160,6 +160,14 @@ public:
/// Dump the state of an object.
virtual void dump (void) const;
+ /// Method called by ACE_Dev_Poll_Reactor to obtain one notification.
+ /// THIS METHOD MUST BE CALLED WITH THE REACTOR TOKEN HELD!
+ ///
+ /// @return -1 on error, else 0 and @arg nb has the notify to
+ /// dispatch. Note that the contained event handler may be
+ /// 0 if there were only wake-ups (no handlers to dispatch).
+ int dequeue_one (ACE_Notification_Buffer &nb);
+
protected:
/**
@@ -199,11 +207,6 @@ protected:
*/
ACE_Notification_Queue notification_queue_;
#endif /* ACE_HAS_REACTOR_NOTIFICATION_QUEUE */
-
- /// Lock and flag to say whether we're already dispatching notifies.
- /// Purpose is to only dispatch notifies from one thread at a time.
- ACE_SYNCH_MUTEX dispatching_lock_;
- volatile bool dispatching_;
};
// ---------------------------------------------------------------------