diff options
author | jxh <jxh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-10-05 10:44:23 +0000 |
---|---|---|
committer | jxh <jxh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-10-05 10:44:23 +0000 |
commit | e271a5fadfce4755ed8b49300b26c449eeb5550a (patch) | |
tree | ded18b0137b67bc79bf16d3dbeaf4499852a60d2 /ace/Asynch_IO.cpp | |
parent | b40fde2a5dc12dac550c5f4a8ee06669f470324b (diff) | |
download | ATCD-e271a5fadfce4755ed8b49300b26c449eeb5550a.tar.gz |
Additional interfaces for JAWS.
Diffstat (limited to 'ace/Asynch_IO.cpp')
-rw-r--r-- | ace/Asynch_IO.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ace/Asynch_IO.cpp b/ace/Asynch_IO.cpp index 5d9830bb340..625c7db17c0 100644 --- a/ace/Asynch_IO.cpp +++ b/ace/Asynch_IO.cpp @@ -829,6 +829,10 @@ ACE_Asynch_Accept_Handler::ACE_Asynch_Accept_Handler (ACE_Reactor* reactor, : reactor_ (reactor), proactor_ (proactor) { + if (this->reactor_ == 0) + this->reactor_ = ACE_Reactor::instance (); + if (this->proactor_ == 0) + this->proactor_ = ACE_Proactor::instance (); } ACE_Asynch_Accept_Handler::~ACE_Asynch_Accept_Handler (void) @@ -1171,6 +1175,8 @@ ACE_Asynch_Accept::thread_function (void* arg_reactor) // Retrieve the reactor pointer from the argument. ACE_Reactor* reactor = (ACE_Reactor *) arg_reactor; + if (reactor == 0) + reactor = ACE_Reactor::instance (); // For this reactor, this thread is the owner. reactor->owner (ACE_OS::thr_self ()); |