summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-07-29 09:30:17 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-07-29 09:30:17 +0000
commite5a4a68ba5164821cc89a2f9eb626e1d2be41684 (patch)
tree2cc150081aaa244d92ee699db428995f0208b282
parent8f6842c4f2d0f0ef74b0e932a687fb5f3e6c1444 (diff)
downloadATCD-e5a4a68ba5164821cc89a2f9eb626e1d2be41684.tar.gz
Should determine whether to renew token in renew method
-rw-r--r--ace/Select_Reactor.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/ace/Select_Reactor.cpp b/ace/Select_Reactor.cpp
index b767d066166..cfa72cae497 100644
--- a/ace/Select_Reactor.cpp
+++ b/ace/Select_Reactor.cpp
@@ -560,7 +560,8 @@ ACE_Select_Reactor::renew (void)
{
ACE_TRACE ("ACE_Select_Reactor::renew");
#if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0)
- this->token_.renew (this->requeue_position_);
+ if (this->supress_renew () == 0)
+ this->token_.renew (this->requeue_position_);
#endif /* defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0) */
}
@@ -626,7 +627,8 @@ ACE_Select_Reactor_Token::sleep_hook (void)
#endif /* ACE_MT_SAFE */
ACE_Select_Reactor_Notify::ACE_Select_Reactor_Notify (void)
- : max_notify_iterations_ (-1)
+ : max_notify_iterations_ (-1),
+ supress_renew_ (0)
{
}