summaryrefslogtreecommitdiff
path: root/TAO/tests/Hang_Shutdown/test_i.h
blob: 28f6ef82e23cce5195ea749762c0aec54020069d (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
33
34
35
36
37
38
39
40
41
42
//
// $Id$
//
#ifndef TAO_HANG_TEST_I_H
#define TAO_HANG_TEST_I_H
#include /**/ "ace/pre.h"

#include "TestS.h"

#include "ace/OS_NS_unistd.h"

namespace Test
{
  class test_i
    : public virtual POA_Test::Hang
  {
  public:
    // = The skeleton methods
    virtual void send_stuff (const char* str,
                             CORBA::Boolean flag
                             ACE_ENV_ARG_DECL_NOT_USED)
      ACE_THROW_SPEC ((CORBA::SystemException))
    {
      ACE_DEBUG ((LM_DEBUG,
                  "(%P|%t) - [%C]\n", str));

      if (flag)
        {
          ACE_OS::sleep (10);

          ACE_DEBUG ((LM_DEBUG,
                      "TAO (%P|%t) - Returning from send_stuff\n", str));
        }

      return;
    }
  private:
  };
}

#include /**/ "ace/post.h"
#endif /* TAO_HANG_TEST_I_H */