summaryrefslogtreecommitdiff
path: root/TAO/tests/Hang_Shutdown/test_i.h
blob: 2008a85d139e1acd9e56f24f79462f3a22edcd4e (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
//
// $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_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 */