diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2007-01-08 12:00:53 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2007-01-08 12:00:53 +0000 |
commit | 349f564f197943a674a0634cf46694d1f78130ea (patch) | |
tree | 860043432a19e68434191ee9cfc19daf766452d3 | |
parent | 46812607db68d7b47e6fda7a70c47ab3a2594390 (diff) | |
download | ATCD-349f564f197943a674a0634cf46694d1f78130ea.tar.gz |
Mon Jan 8 12:00:30 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl>
-rw-r--r-- | ACE/ChangeLog | 8 | ||||
-rw-r--r-- | ACE/ace/Select_Reactor_T.cpp | 2 | ||||
-rw-r--r-- | ACE/ace/Select_Reactor_T.h | 4 |
3 files changed, 11 insertions, 3 deletions
diff --git a/ACE/ChangeLog b/ACE/ChangeLog index e82bdce782c..c21ac32dfa5 100644 --- a/ACE/ChangeLog +++ b/ACE/ChangeLog @@ -1,3 +1,11 @@ +Mon Jan 8 12:00:30 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl> + + * ace/Select_Reactor_T.cpp: + Const improvement + + * ace/Select_Reactor_T.h : + Also use ACE_DISABLE_NOTIFY_PIPE_DEFAULT in the constructors + Mon Jan 8 11:23:30 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl> * ace/Select_Reactor_T.h (open): diff --git a/ACE/ace/Select_Reactor_T.cpp b/ACE/ace/Select_Reactor_T.cpp index 77ff8d4758e..c7cde626b0a 100644 --- a/ACE/ace/Select_Reactor_T.cpp +++ b/ACE/ace/Select_Reactor_T.cpp @@ -210,7 +210,7 @@ ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::notify (ACE_Event_Handler *eh, // caller to dictate which Event_Handler method the receiver // invokes. Note that this call can timeout. - ssize_t n = this->notify_handler_->notify (eh, mask, timeout); + ssize_t const n = this->notify_handler_->notify (eh, mask, timeout); return n == -1 ? -1 : 0; } diff --git a/ACE/ace/Select_Reactor_T.h b/ACE/ace/Select_Reactor_T.h index 751c25d17aa..638e71185c5 100644 --- a/ACE/ace/Select_Reactor_T.h +++ b/ACE/ace/Select_Reactor_T.h @@ -67,7 +67,7 @@ public: /// fine if your application doesn't use the reactor to handle signals). ACE_Select_Reactor_T (ACE_Sig_Handler * = 0, ACE_Timer_Queue * = 0, - int disable_notify_pipe = 0, + int disable_notify_pipe = ACE_DISABLE_NOTIFY_PIPE_DEFAULT, ACE_Reactor_Notify *notify = 0, int mask_signals = 1, int s_queue = ACE_SELECT_TOKEN::FIFO); @@ -92,7 +92,7 @@ public: int restart = 0, ACE_Sig_Handler * = 0, ACE_Timer_Queue * = 0, - int disable_notify_pipe = 0, + int disable_notify_pipe = ACE_DISABLE_NOTIFY_PIPE_DEFAULT, ACE_Reactor_Notify *notify = 0, int mask_signals = 1, int s_queue = ACE_SELECT_TOKEN::FIFO); |