diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-09-25 20:23:58 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-09-25 20:23:58 +0000 |
commit | 39ceb8dc27097c0b32c825b785322e6d20fce7ef (patch) | |
tree | 804b2258728264067e29458112c5a669264fb05a /ace/Object_Manager.cpp | |
parent | fc6e16973618fe45367bf73c67dec08d48f90d81 (diff) | |
download | ATCD-39ceb8dc27097c0b32c825b785322e6d20fce7ef.tar.gz |
added socket_init to Object_Manager ctor and socket_fini to Object_Manager dtor, to be sure that those calls happen first/last
Diffstat (limited to 'ace/Object_Manager.cpp')
-rw-r--r-- | ace/Object_Manager.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/ace/Object_Manager.cpp b/ace/Object_Manager.cpp index 30c0ac89d27..0dd430b86fa 100644 --- a/ace/Object_Manager.cpp +++ b/ace/Object_Manager.cpp @@ -122,6 +122,12 @@ ACE_Object_Manager::ACE_Object_Manager (void) // Initialize the main thread's TS storage. ACE_TSS_Emulation::tss_open (ts_storage_); #endif /* ACE_HAS_TSS_EMULATION */ + + // Open Winsock (no-op on other platforms). + ACE_OS::socket_init (ACE_WSOCK_VERSION); + + // Open the main thread's ACE_Log_Msg. + (void *) ACE_LOG_MSG; } ACE_Object_Manager::~ACE_Object_Manager (void) @@ -159,6 +165,9 @@ ACE_Object_Manager::~ACE_Object_Manager (void) // Close the main thread's TSS, including its Log_Msg instance. ACE_OS::cleanup_tss (); + // Close down Winsock (no-op on other platforms). + ACE_OS::socket_fini (); + ACE_MT (delete lock_; lock_ = 0); delete registered_objects_; @@ -168,7 +177,7 @@ ACE_Object_Manager::~ACE_Object_Manager (void) ACE_Allocator::close_singleton (); # if defined (ACE_HAS_THREADS) - // Close the ACE_Allocator and ACE_Static_Object_Lock. + // Close ACE_Static_Object_Lock. ACE_Static_Object_Lock::close_singleton (); # endif /* ACE_HAS_THREADS */ |