5 #include "Default_Dispatcher_Impl.h"
7 #if ! defined (__ACE_INLINE__)
9 #endif /* __ACE_INLINE__ */
13 int Dispatcher::dispatch (const Dispatch_Command
* cmd
, const QoSDescriptor
& qos
)
15 return dispatcher_impl_
->dispatch (cmd
, qos
);
18 int Dispatcher::shutdown ()
20 return dispatcher_impl_
->shutdown ();
23 int Dispatcher::activate ()
25 return dispatcher_impl_
->activate ();
28 void Dispatcher::implementation (Dispatcher_Impl
* impl
)
30 std::unique_ptr
<Dispatcher_Impl
> tmp_impl (impl
);
31 dispatcher_impl_
= std::move(tmp_impl
);
36 create_dispatcher(const Dispatcher_Attributes
& attrs
)
39 Dispatcher_Impl
* tmp
= 0;
40 ACE_NEW_RETURN (tmp
, Default_Dispatcher_Impl
, 0);
41 ACE_NEW_RETURN (disp
, Dispatcher
, 0);
42 disp
->implementation (tmp
);