Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / QoS / QoS_Manager.cpp
blobd5437c918964bf0c9d278ce5e5b64795a08b021a
1 // QoS_Manager.cpp
2 #include "QoS_Manager.h"
3 #include "ace/Log_Category.h"
5 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
7 ACE_ALLOC_HOOK_DEFINE(ACE_QOS_MANAGER)
9 ACE_QoS_Manager::ACE_QoS_Manager ()
12 ACE_QoS_Manager::~ACE_QoS_Manager ()
15 // Adds the given session to the list of session objects joined by
16 // this socket.
18 int
19 ACE_QoS_Manager::join_qos_session (ACE_QoS_Session *qos_session)
21 if (this->qos_session_set ().insert (qos_session) != 0)
22 ACELIB_ERROR_RETURN ((LM_ERROR,
23 ACE_TEXT ("Error in adding a new session to the ")
24 ACE_TEXT ("socket session set\n")),
25 -1);
26 return 0;
29 // Returns the QoS session set for this socket.
31 ACE_Unbounded_Set <ACE_QoS_Session *>
32 ACE_QoS_Manager::qos_session_set ()
34 return this->qos_session_set_;
37 ACE_END_VERSIONED_NAMESPACE_DECL