diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-07-31 21:48:20 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-07-31 21:48:20 +0000 |
commit | 86c5f836d1a679208716a422839d7da38ba41059 (patch) | |
tree | 1b3da514a0eb2064d0b27c62011db9492387b7dc /ace/Dump.cpp | |
parent | 13c10349a654c59c85bb62c7f7b9ab8e1424814c (diff) | |
download | ATCD-86c5f836d1a679208716a422839d7da38ba41059.tar.gz |
added ACE_HAS_INSTANTIATION_PRAGMA support
Diffstat (limited to 'ace/Dump.cpp')
-rw-r--r-- | ace/Dump.cpp | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/ace/Dump.cpp b/ace/Dump.cpp index b84c61c380c..57e8aae7ac6 100644 --- a/ace/Dump.cpp +++ b/ace/Dump.cpp @@ -24,23 +24,23 @@ ACE_Dumpable::ACE_Dumpable (const void *this_ptr) } ACE_Dumpable_Ptr::ACE_Dumpable_Ptr (const ACE_Dumpable *dumper) - : dumper_ (dumper) + : dumper_ (dumper) { ACE_TRACE ("ACE_Dumpable_Ptr::ACE_Dumpable_Ptr"); } const ACE_Dumpable * ACE_Dumpable_Ptr::operator->() const -{ +{ ACE_TRACE ("ACE_Dumpable_Ptr::operator->"); - return this->dumper_; + return this->dumper_; } -void +void ACE_Dumpable_Ptr::operator= (const ACE_Dumpable *dumper) const { ACE_TRACE ("ACE_Dumpable_Ptr::operator="); - if (this->dumper_ != dumper) + if (this->dumper_ != dumper) { delete (ACE_Dumpable *) this->dumper_; ((ACE_Dumpable_Ptr *) this)->dumper_ = dumper; @@ -68,7 +68,7 @@ ACE_ODB::instance (void) return ACE_ODB::instance_; } -void +void ACE_ODB::dump_objects (void) { ACE_TRACE ("ACE_ODB::dump_objects"); @@ -83,7 +83,7 @@ ACE_ODB::dump_objects (void) // This method registers a new <dumper>. It detects // duplicates and simply overwrites them. -void +void ACE_ODB::register_object (const ACE_Dumpable *dumper) { ACE_TRACE ("ACE_ODB::register_object"); @@ -110,7 +110,7 @@ ACE_ODB::register_object (const ACE_Dumpable *dumper) this->object_table_[slot].dumper_ = dumper; } -void +void ACE_ODB::remove_object (const void *this_ptr) { ACE_TRACE ("ACE_ODB::remove_object"); @@ -131,6 +131,11 @@ ACE_ODB::remove_object (const void *this_ptr) ACE_ODB *ACE_ODB::instance_ = 0; -#if defined (ACE_TEMPLATES_REQUIRE_SPECIALIZATION) +#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) ACE_MT (template class ACE_Guard<ACE_Thread_Mutex>); -#endif /* ACE_TEMPLATES_REQUIRE_SPECIALIZATION */ +#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) +#if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0) +#pragma instantiate ACE_Guard<ACE_Thread_Mutex> +#endif /* ACE_MT_SAFE */ +#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ + |