diff options
author | Abdullah Sowayan <sowayan@users.noreply.github.com> | 2008-06-16 00:55:02 +0000 |
---|---|---|
committer | Abdullah Sowayan <sowayan@users.noreply.github.com> | 2008-06-16 00:55:02 +0000 |
commit | f0fbaafa34daea5f30b8a6708038499b4fef3197 (patch) | |
tree | 2d88dd1435fe862e009b80bfbf022273eba55f8d /TAO/tests/Bug_1383_Regression/simple_i.cpp | |
parent | b0291c31ba6b0a94e5ff531aa9a9a9998fd35fae (diff) | |
download | ATCD-f0fbaafa34daea5f30b8a6708038499b4fef3197.tar.gz |
Mon Jun 16 00:51:02 UTC 2008 Abdullah Sowayan <abdullah.sowayan@lmco.com>
Diffstat (limited to 'TAO/tests/Bug_1383_Regression/simple_i.cpp')
-rw-r--r-- | TAO/tests/Bug_1383_Regression/simple_i.cpp | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/TAO/tests/Bug_1383_Regression/simple_i.cpp b/TAO/tests/Bug_1383_Regression/simple_i.cpp index fb3b868ca90..db619308dbc 100644 --- a/TAO/tests/Bug_1383_Regression/simple_i.cpp +++ b/TAO/tests/Bug_1383_Regression/simple_i.cpp @@ -5,27 +5,25 @@ #include "ace/Reactor.h" Simple_i::Simple_i(CORBA::ORB_ptr orb) - : m_orb(orb->_duplicate(orb)) + : m_orb(orb->_duplicate(orb)) { } void Simple_i::registerCallee(Callee_ptr value) { ACE_DEBUG ((LM_DEBUG, "registerCallee invoked\n")); - // retain a reference so we can callback later - m_callee = value->_duplicate(value); + // retain a reference so we can callback later + m_callee = value->_duplicate(value); - // register a callback with the reactor so we can invoke the - // callback method + // register a callback with the reactor so we can invoke the + // callback method m_orb->orb_core()->reactor()->schedule_timer(this, 0, ACE_Time_Value(5)); } -int Simple_i::handle_timeout( - const ACE_Time_Value &, - const void * - ) +int Simple_i::handle_timeout(const ACE_Time_Value &, + const void *) { ACE_DEBUG ((LM_DEBUG, "timer expired\n")); - m_callee->callback("got timeout"); - return 0; + m_callee->callback("got timeout"); + return 0; } |