summaryrefslogtreecommitdiff
path: root/TAO/tests/Bug_3768_Regression/TestCallback.cpp
blob: 03aac6b348a7a93811e0658da6e755f567a59748 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include "TestCallback.h"
#include "ace/OS_NS_unistd.h"

TestCallback::TestCallback (CORBA::ORB_ptr orb)
  : work_ (orb)
{
}

void
TestCallback::start_threads_and_block ()
{
  ACE_DEBUG ((LM_DEBUG, "(%P|%t) client - start_threads_and_block\n"));
  work_.activate(THR_NEW_LWP | THR_JOINABLE | THR_INHERIT_SCHED,10);
  work_.wait (); // blocks forever as the worker threads never end
}

void
TestCallback::test_call ()
{
  ACE_DEBUG ((LM_DEBUG, "(%P|%t) client - test_call\n"));
}

void
TestCallback::shutdown ()
{
  ACE_DEBUG ((LM_DEBUG, "(%P|%t) client - test completed\n"));
  exit (0);
}