summaryrefslogtreecommitdiff
path: root/TAO/tao/PortableServer/Active_Object_Map.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/PortableServer/Active_Object_Map.cpp')
-rw-r--r--TAO/tao/PortableServer/Active_Object_Map.cpp31
1 files changed, 18 insertions, 13 deletions
diff --git a/TAO/tao/PortableServer/Active_Object_Map.cpp b/TAO/tao/PortableServer/Active_Object_Map.cpp
index a0996627247..b5822a2d438 100644
--- a/TAO/tao/PortableServer/Active_Object_Map.cpp
+++ b/TAO/tao/PortableServer/Active_Object_Map.cpp
@@ -322,32 +322,37 @@ TAO_Active_Object_Map::~TAO_Active_Object_Map (void)
delete this->user_id_map_;
}
-bool
+int
TAO_Active_Object_Map::is_user_id_in_map (const PortableServer::ObjectId &user_id,
CORBA::Short priority,
- bool &priorities_match,
- bool &deactivated)
+ int &priorities_match,
+ int &deactivated)
{
TAO_Active_Object_Map_Entry *entry = 0;
- bool result = false;
- int const find_result = this->user_id_map_->find (user_id,
- entry);
- if (find_result == 0)
+ int result = this->user_id_map_->find (user_id,
+ entry);
+ if (result == 0)
{
if (entry->servant_ == 0)
{
+ result = 0;
+
if (entry->priority_ != priority)
- priorities_match = false;
+ priorities_match = 0;
}
else
{
- result = true;
+ result = 1;
if (entry->deactivated_)
{
- deactivated = true;
+ deactivated = 1;
}
}
}
+ else
+ {
+ result = 0;
+ }
return result;
}
@@ -366,7 +371,7 @@ TAO_Id_Uniqueness_Strategy::set_active_object_map (TAO_Active_Object_Map *active
int
TAO_Unique_Id_Strategy::is_servant_in_map (PortableServer::Servant servant,
- bool &deactivated)
+ int &deactivated)
{
TAO_Active_Object_Map_Entry *entry = 0;
int result = this->active_object_map_->servant_map_->find (servant,
@@ -376,7 +381,7 @@ TAO_Unique_Id_Strategy::is_servant_in_map (PortableServer::Servant servant,
result = 1;
if (entry->deactivated_)
{
- deactivated = true;
+ deactivated = 1;
}
}
else
@@ -523,7 +528,7 @@ TAO_Unique_Id_Strategy::remaining_activations (PortableServer::Servant servant)
int
TAO_Multiple_Id_Strategy::is_servant_in_map (PortableServer::Servant,
- bool &)
+ int &)
{
return -1;
}