diff options
author | john_c <john_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2006-04-28 03:50:28 +0000 |
---|---|---|
committer | john_c <john_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2006-04-28 03:50:28 +0000 |
commit | 88556d568eb0a06bf8af2ddefacbc1ad5f00401e (patch) | |
tree | 72f4a0e33b9dd26d1783ff005d67494bfb79a9de /TAO/tao/MProfile.cpp | |
parent | 317d8c1ce78436f0107f056418c0c5f5b4231069 (diff) | |
download | ATCD-oci_dave_wchar_refactor_branch.tar.gz |
4_27_06 branch merge in and compile error fixedoci_dave_wchar_refactor_branch
Diffstat (limited to 'TAO/tao/MProfile.cpp')
-rw-r--r-- | TAO/tao/MProfile.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/TAO/tao/MProfile.cpp b/TAO/tao/MProfile.cpp index 59e25c0bfb7..94fb9e4dbf0 100644 --- a/TAO/tao/MProfile.cpp +++ b/TAO/tao/MProfile.cpp @@ -364,4 +364,19 @@ TAO_MProfile::policy_list (ACE_ENV_SINGLE_ARG_DECL) return ret_val; } +int +TAO_MProfile::give_shared_profile (TAO_Profile *pfile) +{ + for (unsigned i = 0; i < this->last_; i++) + if (pfile->tag() == this->pfiles_[i]->tag() && + pfile->compare_key(this->pfiles_[i])) + { + this->pfiles_[i]->add_generic_endpoint(pfile->endpoint()); + pfile->_decr_refcnt(); + return i; + } + return this->give_profile(pfile,0); +} + + TAO_END_VERSIONED_NAMESPACE_DECL |