summaryrefslogtreecommitdiff
path: root/TAO/tests/Hang_Shutdown/test_i.h
blob: f6ae2244223799c16c80a45c2243b2427a0cfd7a (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
43
44
45
46
47
48
49
50
51
52
53
54
//
// $Id$
//
#ifndef TAO_HANG_TEST_I_H
#define TAO_HANG_TEST_I_H
#include /**/ "ace/pre.h"

#include "TestS.h"

#if defined (_MSC_VER)
#  pragma warning(push)
# pragma warning (disable:4250)
#endif /* _MSC_VER */

#include "ace/OS_NS_unistd.h"

namespace TAO
{
  namespace Test
  {
    class test_i
      : public virtual POA_TAO::Test::Hang
      , public virtual PortableServer::RefCountServantBase
    {
    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:
    };
  }
}
#if defined(_MSC_VER)
# pragma warning(pop)
#endif /* _MSC_VER */

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