diff options
author | iliyan <iliyan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-02-26 21:06:21 +0000 |
---|---|---|
committer | iliyan <iliyan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-02-26 21:06:21 +0000 |
commit | 8cbebca3800ed8b7e9f764a8cee5ba0d8a16ef59 (patch) | |
tree | 70b32c493402b7f650791c27e5a991e353301832 /ACE/ace/Service_Gestalt.cpp | |
parent | 56c821586f3b51032cbb13ee5f2f208dfe71d198 (diff) | |
download | ATCD-8cbebca3800ed8b7e9f764a8cee5ba0d8a16ef59.tar.gz |
ChangeLogTag: Mon Feb 26 20:58:05 UTC 2007 Iliyan Jeliazkov <iliyan@ociweb.com>
Diffstat (limited to 'ACE/ace/Service_Gestalt.cpp')
-rw-r--r-- | ACE/ace/Service_Gestalt.cpp | 29 |
1 files changed, 3 insertions, 26 deletions
diff --git a/ACE/ace/Service_Gestalt.cpp b/ACE/ace/Service_Gestalt.cpp index ff3ea6f8289..5d7242130eb 100644 --- a/ACE/ace/Service_Gestalt.cpp +++ b/ACE/ace/Service_Gestalt.cpp @@ -456,42 +456,19 @@ ACE_Service_Gestalt::add_processed_static_svc } -/// Queues static service object descriptor which, during open() will -/// be given to process_directive() to create the Service +/// Queues a static service object descriptor which, during open() +/// will be given to process_directive() to create the Service /// Object. Normally, only called from static initializers, prior to -/// calling open(). +/// calling open() but loading a service from a DLL can cause it too. int ACE_Service_Gestalt::insert (ACE_Static_Svc_Descriptor *stsd) { - if (ACE::debug ()) - { - static int pid = ACE_OS::getpid (); - - // If called during static initialization ACE_Log_Msg may not - // have been initialized yet, so use printf intead. Using a "//" - // prefix in case the executable is a C++ code generator and the - // output gets embedded in the generated code. - ACE_OS::fprintf (stderr, - "// (%d|0) SG::insert" - " repo=%p (opened=%d) - enqueue %s," - " active=%d.\n", - pid, - this->repo_, - this->is_opened_, - stsd->name_, - stsd->active_); - } - if (this->static_svcs_ == 0) ACE_NEW_RETURN (this->static_svcs_, ACE_STATIC_SVCS, -1); - // Inserting a service after the Gestalt has been opened makes it - // impossible to activate it later. Perhaps open came too soon? - //ACE_ASSERT (this->is_opened_ == 0); - return this->static_svcs_->insert (stsd); } |