Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / Bug_3768_Regression / TestCallback.cpp
blob03aac6b348a7a93811e0658da6e755f567a59748
1 #include "TestCallback.h"
2 #include "ace/OS_NS_unistd.h"
4 TestCallback::TestCallback (CORBA::ORB_ptr orb)
5 : work_ (orb)
9 void
10 TestCallback::start_threads_and_block ()
12 ACE_DEBUG ((LM_DEBUG, "(%P|%t) client - start_threads_and_block\n"));
13 work_.activate(THR_NEW_LWP | THR_JOINABLE | THR_INHERIT_SCHED,10);
14 work_.wait (); // blocks forever as the worker threads never end
17 void
18 TestCallback::test_call ()
20 ACE_DEBUG ((LM_DEBUG, "(%P|%t) client - test_call\n"));
23 void
24 TestCallback::shutdown ()
26 ACE_DEBUG ((LM_DEBUG, "(%P|%t) client - test completed\n"));
27 exit (0);