summaryrefslogtreecommitdiff
path: root/TAO/tests/Bug_3768_Regression/TestServer.cpp
blob: 1df313ca1a11520bf264909680e2fa76514b60ed (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
29
30
31
32
//
// $Id: TestServer.cpp
//
#include "TestServer.h"

void
TestServer::pass_callback (Test::TestCallback_ptr test)
{
  // Save the callback object
  callback_ = Test::TestCallback::_duplicate(test);

  // Start worker threads on the client: this call won't come back
  callback_->start_threads_and_block();
}

bool
TestServer::got_callback (void)
{
  return (callback_.in() != 0);
}

void
TestServer::make_callback (void)
{
  callback_->test_call();
}

void
TestServer::shutdown_client (void)
{
  callback_->shutdown();
}