summaryrefslogtreecommitdiff
path: root/ACE/ace/Service_Gestalt.cpp
diff options
context:
space:
mode:
authoriliyan <iliyan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2007-02-15 05:58:26 +0000
committeriliyan <iliyan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2007-02-15 05:58:26 +0000
commit5180611de4cca9efe5a7d4270923ea1e60efe356 (patch)
treeb17c47c9d146719654d0a64966b518f1ab3d3045 /ACE/ace/Service_Gestalt.cpp
parent840c0065a17ea8d751d163cc09866ac0776745ab (diff)
downloadATCD-5180611de4cca9efe5a7d4270923ea1e60efe356.tar.gz
ChangeLogTag: Thu Feb 15 05:41:11 UTC 2007 Iliyan Jeliazkov <iliyan@ociweb.com>
Diffstat (limited to 'ACE/ace/Service_Gestalt.cpp')
-rw-r--r--ACE/ace/Service_Gestalt.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/ACE/ace/Service_Gestalt.cpp b/ACE/ace/Service_Gestalt.cpp
index 1658bc06d53..ea7d96dbd2b 100644
--- a/ACE/ace/Service_Gestalt.cpp
+++ b/ACE/ace/Service_Gestalt.cpp
@@ -400,6 +400,24 @@ ACE_Service_Gestalt::load_static_svcs (void)
+/// Searches for a service object declaration in the local repo, only
+
+int
+ACE_Service_Gestalt::find (const ACE_TCHAR name[],
+ const ACE_Service_Type **srp,
+ int ignore_suspended) const
+{
+ // Closing the gestalt will have disassociated it from the
+ // repository. If the repository used to be owned by the gestalt, it
+ // will also have been destroyed - so just check for repo_ before
+ // doing anything with it.
+ if (this->repo_ != 0)
+ return this->repo_->find (name, srp, ignore_suspended);
+
+ return 0;
+}
+
+
/// Find a static service descriptor by name
int