summaryrefslogtreecommitdiff
path: root/ace/Select_Reactor.cpp
diff options
context:
space:
mode:
authornw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-10-10 20:21:39 +0000
committernw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-10-10 20:21:39 +0000
commit91d08ffcb4fd7afe34fb395f65d462b8f3e4c535 (patch)
treed17cf27413a609ce231380be08c4999a3a3d8bb6 /ace/Select_Reactor.cpp
parent109201e6caa0e81ec843eb83b1bd8384607ca838 (diff)
downloadATCD-91d08ffcb4fd7afe34fb395f65d462b8f3e4c535.tar.gz
Added set_timer_queue and set_sig_handler methods.
Diffstat (limited to 'ace/Select_Reactor.cpp')
-rw-r--r--ace/Select_Reactor.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/ace/Select_Reactor.cpp b/ace/Select_Reactor.cpp
index 91849082249..97a706799b2 100644
--- a/ace/Select_Reactor.cpp
+++ b/ace/Select_Reactor.cpp
@@ -972,6 +972,26 @@ ACE_Select_Reactor::open (size_t size,
return result;
}
+int
+ACE_Select_Reactor::set_sig_handler (ACE_Sig_Handler *signal_handler)
+{
+ if (this->signal_handler_ != 0 && this->delete_signal_handler_ != 0)
+ delete this->signal_handler_;
+ this->signal_handler_ = signal_handler;
+ this->delete_signal_handler_ = 0;
+ return 0;
+}
+
+int
+ACE_Select_Reactor::set_timer_queue (ACE_Timer_Queue *timer_queue)
+{
+ if (this->timer_queue_ != 0 && this->delete_timer_queue_ != 0)
+ delete this->timer_queue_;
+ this->timer_queue_ = timer_queue;
+ this->delete_timer_queue_ = 0;
+ return 0;
+}
+
ACE_Select_Reactor::ACE_Select_Reactor (ACE_Sig_Handler *sh,
ACE_Timer_Queue *tq)
: handler_rep_ (*this),