Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / performance-tests / Pluggable / PP_Test_i.cpp
blob62c2cae11f39785e2603678430c0b362cae4a0d1
2 //=============================================================================
3 /**
4 * @file PP_Test_i.cpp
6 * @author Jeff Parsons <parsons@cs.wustl.edu>
7 */
8 //=============================================================================
11 #include "tao/Timeprobe.h"
12 #include "tao/ORB_Constants.h"
13 #include "PP_Test_i.h"
15 #if defined (ACE_ENABLE_TIMEPROBES)
17 static const char *PP_Test_i_Timeprobe_Description[] =
19 "PP_Test_i::send_oneway - start",
20 "PP_Test_i::send_oneway - end",
22 "PP_Test_i::send_void - start",
23 "PP_Test_i::send_void - end",
25 "PP_Test_i::make_pluggable - start",
26 "PP_Test_i::make_pluggable - end",
28 "PP_Test_i::server_shutdown - start",
29 "PP_Test_i::server_shutdown - end"
32 enum
34 // Timeprobe description table start key
35 PP_TEST_I_SEND_ONEWAY_START = 10100,
36 PP_TEST_I_SEND_ONEWAY_END,
38 PP_TEST_I_SEND_VOID_START,
39 PP_TEST_I_SEND_VOID_END,
41 PP_TEST_I_MAKE_PLUGGABLE_START,
42 PP_TEST_I_MAKE_PLUGGABLE_END,
44 PP_TEST_I_SERVER_SHUTDOWN_START,
45 PP_TEST_I_SERVER_SHUTDOWN_END
48 // Setup Timeprobes
49 ACE_TIMEPROBE_EVENT_DESCRIPTIONS (PP_Test_i_Timeprobe_Description,
50 PP_TEST_I_SEND_ONEWAY_START);
52 #endif /* ACE_ENABLE_TIMEPROBES */
54 // Factory Constructor
56 Pluggable_Test_Factory_i::Pluggable_Test_Factory_i (CORBA::ORB_ptr orb)
57 : my_pluggable_test_ (orb)
61 // Factory Destructor
63 Pluggable_Test_Factory_i::~Pluggable_Test_Factory_i ()
67 Pluggable_Test_ptr
68 Pluggable_Test_Factory_i::make_pluggable_test ()
70 ACE_FUNCTION_TIMEPROBE (PP_TEST_I_MAKE_PLUGGABLE_START);
71 return my_pluggable_test_._this ();
74 // Constructor
76 PP_Test_i::PP_Test_i (CORBA::ORB_ptr orb)
77 : orb_ (CORBA::ORB::_duplicate (orb))
81 // Destructor
83 PP_Test_i::~PP_Test_i ()
87 // Oneway send
89 void
90 PP_Test_i::send_oneway ()
92 ACE_FUNCTION_TIMEPROBE (PP_TEST_I_SEND_ONEWAY_START);
95 // Twoway send
97 void
98 PP_Test_i::send_void ()
100 ACE_FUNCTION_TIMEPROBE (PP_TEST_I_SEND_VOID_START);
103 // Shutdown.
105 void PP_Test_i::shutdown ()
107 ACE_DEBUG ((LM_DEBUG,
108 "%s\n",
109 "PP_Test_i is shutting down"));
111 ACE_FUNCTION_TIMEPROBE (PP_TEST_I_SERVER_SHUTDOWN_START);
113 this->orb_->shutdown ();