diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-09-07 01:27:55 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-09-07 01:27:55 +0000 |
commit | ee3111d36f30b563e5bbf690b0f0fd0f89ae0629 (patch) | |
tree | 6ca229e5571c8f5b18153841e6350dc94c27f547 /ace/Token_Invariants.cpp | |
parent | 7b307de9bdb49be9c7b9eca1dcafce19c1975ae5 (diff) | |
download | ATCD-ee3111d36f30b563e5bbf690b0f0fd0f89ae0629.tar.gz |
base on ACE_Cleanup, so that simpler ACE_Object_Manager::at_exit () can be used
Diffstat (limited to 'ace/Token_Invariants.cpp')
-rw-r--r-- | ace/Token_Invariants.cpp | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/ace/Token_Invariants.cpp b/ace/Token_Invariants.cpp index e9c012b95a6..3c48a3991c3 100644 --- a/ace/Token_Invariants.cpp +++ b/ace/Token_Invariants.cpp @@ -28,39 +28,13 @@ ACE_Token_Invariant_Manager::instance (void) ACE_NEW_RETURN (instance_, ACE_Token_Invariant_Manager, 0); // Register for destruction with ACE_Object_Manager. -#if defined ACE_HAS_SIG_C_FUNC - ACE_Object_Manager::at_exit (instance_, - ACE_Token_Invariant_Manager_cleanup, - 0); -#else - ACE_Object_Manager::at_exit (instance_, - ACE_Token_Invariant_Manager::cleanup, - 0); -#endif /* ACE_HAS_SIG_C_FUNC */ + ACE_Object_Manager::at_exit (instance_); } } return instance_; } -#if defined (ACE_HAS_SIG_C_FUNC) -extern "C" void -ACE_Token_Invariant_Manager_cleanup (void *instance, void *) -{ - ACE_TRACE ("ACE_Token_Invariant_Manager_cleanup"); - - delete (ACE_Token_Invariant_Manager *) instance; -} -#else -void -ACE_Token_Invariant_Manager::cleanup (void *instance, void *) -{ - ACE_TRACE ("ACE_Token_Invariant_Manager::cleanup"); - - delete (ACE_Token_Invariant_Manager *) instance; -} -#endif /* ACE_HAS_SIG_C_FUNC */ - ACE_Token_Invariant_Manager::ACE_Token_Invariant_Manager (void) { ACE_TRACE ("ACE_Token_Invariant_Manager::ACE_Token_Invariant_Manager"); |