summaryrefslogtreecommitdiff
path: root/TAO/tests/Bug_3768_Regression/TestServer.cpp
blob: a3e89dca5e95e5d216226ef389428ff686cfa15e (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
#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();
}