Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / PortableServer / Default_Servant_Dispatcher.cpp
blobff020b8af2dd8ef717b07fd2c54492d8f1e0bc72
1 #include "tao/PortableServer/Default_Servant_Dispatcher.h"
2 #include "tao/PortableServer/Root_POA.h"
3 #include "tao/PortableServer/Network_Priority_Hook.h"
4 #include "ace/CORBA_macros.h"
6 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
8 TAO_Default_Servant_Dispatcher::~TAO_Default_Servant_Dispatcher ()
12 TAO_Root_POA *
13 TAO_Default_Servant_Dispatcher::create_Root_POA (const ACE_CString &name,
14 PortableServer::POAManager_ptr poa_manager,
15 const TAO_POA_Policy_Set &policies,
16 ACE_Lock &lock,
17 TAO_SYNCH_MUTEX &thread_lock,
18 TAO_ORB_Core &orb_core,
19 TAO_Object_Adapter *object_adapter)
21 TAO_Root_POA *poa = 0;
23 ACE_NEW_THROW_EX (poa,
24 TAO_Root_POA (name,
25 poa_manager,
26 policies,
28 lock,
29 thread_lock,
30 orb_core,
31 object_adapter),
32 CORBA::NO_MEMORY ());
34 return poa;
37 void
38 TAO_Default_Servant_Dispatcher::pre_invoke_remote_request (
39 TAO_Root_POA &poa,
40 CORBA::Short,
41 TAO_ServerRequest &req,
42 TAO::Portable_Server::Servant_Upcall::Pre_Invoke_State &)
44 poa.network_priority_hook ()-> set_dscp_codepoint (req, poa);
47 void
48 TAO_Default_Servant_Dispatcher::pre_invoke_collocated_request (
49 TAO_Root_POA &,
50 CORBA::Short,
51 TAO::Portable_Server::Servant_Upcall::Pre_Invoke_State &)
55 void
56 TAO_Default_Servant_Dispatcher::post_invoke (
57 TAO_Root_POA &,
58 TAO::Portable_Server::Servant_Upcall::Pre_Invoke_State &)
62 TAO_END_VERSIONED_NAMESPACE_DECL