diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2006-04-20 10:20:34 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2006-04-20 10:20:34 +0000 |
commit | b469d00cbefd5a5a82b1cae8e432f9e16d2df03c (patch) | |
tree | f3439f1f42c9f720cbc58cee71828a2566bd1b7a | |
parent | 512bca76eccd6314eb61810455477bc3926334e6 (diff) | |
download | ATCD-b469d00cbefd5a5a82b1cae8e432f9e16d2df03c.tar.gz |
ChangeLogTag: Thu Apr 20 09:14:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
112 files changed, 33 insertions, 1485 deletions
diff --git a/examples/APG/Active_Objects/AO.cpp b/examples/APG/Active_Objects/AO.cpp index 8a50e491162..b84a017d590 100644 --- a/examples/APG/Active_Objects/AO.cpp +++ b/examples/APG/Active_Objects/AO.cpp @@ -173,26 +173,6 @@ int ACE_TMAIN (int, ACE_TCHAR *[]) } // Listing 6 -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Future<int>; -template class ACE_Future_Rep<int>; -template class ACE_Future_Observer<int>; -template class ACE_Unbounded_Set<ACE_Future_Observer<int> *>; -template class ACE_Node<ACE_Future_Observer<int> *>; -template class ACE_Unbounded_Set_Iterator<ACE_Future_Observer<int> *>; -template class ACE_Atomic_Op<ACE_Null_Mutex, unsigned int>; -template class ACE_Atomic_Op_Ex<ACE_Null_Mutex, unsigned int>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Future<int> -#pragma instantiate ACE_Future_Rep<int> -#pragma instantiate ACE_Future_Observer<int> -#pragma instantiate ACE_Unbounded_Set<ACE_Future_Observer<int> *> -#pragma instantiate ACE_Node<ACE_Future_Observer<int> *> -#pragma instantiate ACE_Unbounded_Set_Iterator<ACE_Future_Observer<int> *> -#pragma instantiate ACE_Atomic_Op<ACE_Null_Mutex, unsigned int> -#pragma instantiate ACE_Atomic_Op_Ex<ACE_Null_Mutex, unsigned int> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - #else #include "ace/OS_main.h" #include "ace/OS_NS_stdio.h" diff --git a/examples/APG/Active_Objects/AO2.cpp b/examples/APG/Active_Objects/AO2.cpp index a3246b660e0..04553c8e1b8 100644 --- a/examples/APG/Active_Objects/AO2.cpp +++ b/examples/APG/Active_Objects/AO2.cpp @@ -183,26 +183,6 @@ int ACE_TMAIN (int, ACE_TCHAR *[]) } // Listing 2 -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Future<int>; -template class ACE_Future_Rep<int>; -template class ACE_Future_Observer<int>; -template class ACE_Unbounded_Set<ACE_Future_Observer<int> *>; -template class ACE_Node<ACE_Future_Observer<int> *>; -template class ACE_Unbounded_Set_Iterator<ACE_Future_Observer<int> *>; -template class ACE_Atomic_Op<ACE_Null_Mutex, unsigned int>; -template class ACE_Atomic_Op_Ex<ACE_Null_Mutex, unsigned int>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Future<int> -#pragma instantiate ACE_Future_Rep<int> -#pragma instantiate ACE_Future_Observer<int> -#pragma instantiate ACE_Unbounded_Set<ACE_Future_Observer<int> *> -#pragma instantiate ACE_Node<ACE_Future_Observer<int> *> -#pragma instantiate ACE_Unbounded_Set_Iterator<ACE_Future_Observer<int> *> -#pragma instantiate ACE_Atomic_Op<ACE_Null_Mutex, unsigned int> -#pragma instantiate ACE_Atomic_Op_Ex<ACE_Null_Mutex, unsigned int> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - #else #include "ace/OS_main.h" #include "ace/OS_NS_stdio.h" diff --git a/examples/APG/Containers/Allocator.cpp b/examples/APG/Containers/Allocator.cpp index 9f9fe92d2cc..847235a3061 100644 --- a/examples/APG/Containers/Allocator.cpp +++ b/examples/APG/Containers/Allocator.cpp @@ -91,18 +91,3 @@ int ACE_TMAIN (int, ACE_TCHAR *[]) return se.run (); } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Dynamic_Cached_Allocator<ACE_Null_Mutex>; -template class ACE_Unbounded_Stack<DataElement>; -template class ACE_Node<DataElement>; -template class ACE_Cached_Mem_Pool_Node<char>; -template class ACE_Free_List<ACE_Cached_Mem_Pool_Node<char> >; -template class ACE_Locked_Free_List<ACE_Cached_Mem_Pool_Node<char>,ACE_Null_Mutex>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Dynamic_Cached_Allocator<ACE_Null_Mutex> -#pragma instantiate ACE_Unbounded_Stack<DataElement> -#pragma instantiate ACE_Node<DataElement> -#pragma instantiate ACE_Cached_Mem_Pool_Node<char> -#pragma instantiate ACE_Free_List<ACE_Cached_Mem_Pool_Node<char> > -#pragma instantiate ACE_Locked_Free_List<ACE_Cached_Mem_Pool_Node<char>,ACE_Null_Mutex> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION*/ diff --git a/examples/APG/Containers/Array.cpp b/examples/APG/Containers/Array.cpp index 834f595303b..1ffb19f22e9 100644 --- a/examples/APG/Containers/Array.cpp +++ b/examples/APG/Containers/Array.cpp @@ -39,12 +39,3 @@ int ACE_TMAIN (int, ACE_TCHAR *[]) } // Listing 1 -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Array <DataElement*>; -template class ACE_Array_Base<DataElement*>; -template class ACE_Array_Iterator<DataElement*>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Array <DataElement*> -#pragma instantiate ACE_Array_Base<DataElement*> -#pragma instantiate ACE_Array_Iterator<DataElement*> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION*/ diff --git a/examples/APG/Containers/DLList.cpp b/examples/APG/Containers/DLList.cpp index db3ec870d58..8c93e5b4039 100644 --- a/examples/APG/Containers/DLList.cpp +++ b/examples/APG/Containers/DLList.cpp @@ -114,16 +114,3 @@ int ACE_TMAIN (int, ACE_TCHAR *[]) return test.run (); } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_DLList <DataElement>; -template class ACE_DLList_Iterator <DataElement>; -template class ACE_DLList_Reverse_Iterator <DataElement>; -template class ACE_Double_Linked_List<ACE_DLList_Node>; -template class ACE_Double_Linked_List_Iterator_Base<ACE_DLList_Node>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_DLList <DataElement> -#pragma instantiate ACE_DLList_Iterator <DataElement*> -#pragma instantiate ACE_DLList_Reverse_Iterator <DataElement*> -#pragma instantiate ACE_Double_Linked_List<ACE_DLList_Node>; -#pragma instantiate ACE_Double_Linked_List_Iterator_Base<ACE_DLList_Node>; -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION*/ diff --git a/examples/APG/Containers/Hash_Map.cpp b/examples/APG/Containers/Hash_Map.cpp index a81dbd47061..1b2d4ee4634 100644 --- a/examples/APG/Containers/Hash_Map.cpp +++ b/examples/APG/Containers/Hash_Map.cpp @@ -116,19 +116,3 @@ int ACE_TMAIN (int, ACE_TCHAR *[]) return me.run (); } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class Hash_Map <int, DataElement> -; -template class ACE_Hash_Map_Manager_Ex<int, DataElement, ACE_Hash<int>, ACE_Equal_To<int>, ACE_Null_Mutex> -; -template class ACE_Hash_Map_Entry<int, DataElement> -; -template class ACE_Hash_Map_Iterator_Base_Ex<int, DataElement, ACE_Hash<int>, ACE_Equal_To<int>, ACE_Null_Mutex> -; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate Hash_Map <int, DataElement*> -#pragma instantiate ACE_Hash_Map_Manager_Ex<int, DataElement, ACE_Hash<int>, ACE_Equal_To<int>, ACE_Null_Mutex>; -#pragma instantiate ACE_Hash_Map_Entry<int, DataElement>; -#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<int, DataElement, ACE_Hash<int>, ACE_Equal_To<int>, ACE_Null_Mutex>; -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION*/ - diff --git a/examples/APG/Containers/Hash_Map_Hash.cpp b/examples/APG/Containers/Hash_Map_Hash.cpp index 4971954e212..faad3c72585 100644 --- a/examples/APG/Containers/Hash_Map_Hash.cpp +++ b/examples/APG/Containers/Hash_Map_Hash.cpp @@ -109,18 +109,3 @@ int ACE_TMAIN (int, ACE_TCHAR *[]) return me.run (); } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Hash_Map_Manager_Ex<KeyType, DataElement, ACE_Hash<KeyType>, ACE_Equal_To<KeyType>, ACE_Null_Mutex>; -template class Hash_Map <KeyType, DataElement>; -template class ACE_Hash_Map_Entry<KeyType,DataElement>; -template class ACE_Hash_Map_Iterator<KeyType,DataElement,ACE_Null_Mutex>; -template class ACE_Hash_Map_Reverse_Iterator<KeyType,DataElement,ACE_Null_Mutex>; -template class ACE_Hash_Map_Iterator_Base_Ex<KeyType, DataElement, ACE_Hash<KeyType>, ACE_Equal_To<KeyType>, ACE_Null_Mutex>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate Hash_Map <KeyType, DataElement> -#pragma instantiate ACE_Hash_Map_Manager_Ex<KeyType, DataElement,ACE_Hash<KeyType>, ACE_Equal_To<KeyType>, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Entry<KeyType,DataElement> -#pragma instantiate ACE_Hash_Map_Iterator<KeyType,DataElement,ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Reverse_Iterator<KeyType,DataElement,ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<KeyType, DataElement, ACE_Hash<KeyType>, ACE_Equal_To<KeyType>, ACE_Null_Mutex>; -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION*/ diff --git a/examples/APG/Containers/Map_Manager.cpp b/examples/APG/Containers/Map_Manager.cpp index 8761b5b7507..6673204fcc4 100644 --- a/examples/APG/Containers/Map_Manager.cpp +++ b/examples/APG/Containers/Map_Manager.cpp @@ -115,22 +115,3 @@ int ACE_TMAIN (int, ACE_TCHAR *[]) return me.run (); } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Map_Manager<KeyType,DataElement,ACE_Null_Mutex> -; -template class ACE_Map_Iterator<KeyType,DataElement,ACE_Null_Mutex> -; -template class ACE_Map_Entry<KeyType,DataElement> -; -template class ACE_Map_Iterator_Base<KeyType,DataElement,ACE_Null_Mutex> -; -template class ACE_Map_Reverse_Iterator<KeyType,DataElement,ACE_Null_Mutex> -; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Map_Manager<KeyType,DataElement,ACE_Null_Mutex> -#pragma instantiate ACE_Map_Iterator<KeyType,DataElement,ACE_Null_Mutex> -#pragma instantiate ACE_Map_Reverse_Iterator<KeyType,DataElement,ACE_Null_Mutex> -#pragma instantiate ACE_Map_Entry<KeyType,DataElement> -#pragma instantiate ACE_Map_Iterator_Base<KeyType,DataElement,ACE_Null_Mutex> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - diff --git a/examples/APG/Containers/Map_Manager_Specialization.cpp b/examples/APG/Containers/Map_Manager_Specialization.cpp index 016cf1e0630..fc9c00d86f0 100644 --- a/examples/APG/Containers/Map_Manager_Specialization.cpp +++ b/examples/APG/Containers/Map_Manager_Specialization.cpp @@ -151,21 +151,3 @@ int ACE_TMAIN (int, ACE_TCHAR *[]) return me.run (); } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Map_Manager<KeyType,DataElement,ACE_Null_Mutex> -; -template class ACE_Map_Entry<KeyType,DataElement> -; -template class ACE_Map_Iterator_Base<KeyType,DataElement,ACE_Null_Mutex> -; -template class ACE_Map_Iterator<KeyType,DataElement,ACE_Null_Mutex> -; -template class ACE_Map_Reverse_Iterator<KeyType,DataElement,ACE_Null_Mutex> -; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Map_Manager<KeyType,DataElement,ACE_Null_Mutex> -#pragma instantiate ACE_Map_Iterator<KeyType,DataElement,ACE_Null_Mutex> -#pragma instantiate ACE_Map_Reverse_Iterator<KeyType,DataElement,ACE_Null_Mutex> -#pragma instantiate ACE_Map_Entry<KeyType,DataElement> -#pragma instantiate ACE_Map_Iterator_Base<KeyType,DataElement,ACE_Null_Mutex> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/APG/Containers/Queues.cpp b/examples/APG/Containers/Queues.cpp index 238c9e9ce01..ca945169ed4 100644 --- a/examples/APG/Containers/Queues.cpp +++ b/examples/APG/Containers/Queues.cpp @@ -113,18 +113,3 @@ int ACE_TMAIN (int, ACE_TCHAR *[]) return que.run (); } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Node<DataElement>; -template class ACE_Node<DataElement*>; -template class ACE_Unbounded_Queue<DataElement*>; -template class ACE_Unbounded_Queue_Iterator<DataElement*>; -template class ACE_Unbounded_Queue<DataElement>; -template class ACE_Unbounded_Queue_Iterator<DataElement>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Node<DataElement> -#pragma instantiate ACE_Node<DataElement*> -#pragma instantiate ACE_Unbounded_Queue<DataElement*> -#pragma instantiate ACE_Unbounded_Queue_Iterator<DataElement*> -#pragma instantiate ACE_Unbounded_Queue<DataElement> -#pragma instantiate ACE_Unbounded_Queue_Iterator<DataElement> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION*/ diff --git a/examples/APG/Containers/RB_Tree.cpp b/examples/APG/Containers/RB_Tree.cpp index 09e4bf36308..187332a31d8 100644 --- a/examples/APG/Containers/RB_Tree.cpp +++ b/examples/APG/Containers/RB_Tree.cpp @@ -133,26 +133,3 @@ int ACE_TMAIN (int, ACE_TCHAR *[]) return te.run (); } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_RB_Tree <int, DataElement*, -ACE_Less_Than<int>, ACE_Null_Mutex> -; -template class Tree <int, DataElement*> -; -template class ACE_RB_Tree_Iterator_Base<int, DataElement*, ACE_Less_Than<int>, ACE_Null_Mutex> -; -template class ACE_RB_Tree_Iterator<int, DataElement*, ACE_Less_Than<int>, ACE_Null_Mutex> -; -template class ACE_RB_Tree_Reverse_Iterator<int, DataElement*, ACE_Less_Than<int>, ACE_Null_Mutex> -; -template class ACE_RB_Tree_Node<int, DataElement*> -; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_RB_Tree <int, DataElement*,ACE_Less_Than<int>, ACE_Null_Mutex> -#pragma instantiate ACE_Less_Than <int> -#pragma instantiate Tree <int, DataElement*> -#pragma instantiate ACE_RB_Tree_Iterator_Base<int, DataElement*, ACE_Less_Than<int>, ACE_Null_Mutex> -#pragma instantiate ACE_RB_Tree_Iterator<int, DataElement*, ACE_Less_Than<int>, ACE_Null_Mutex> -#pragma instantiate ACE_RB_Tree_Reverse_Iterator<int, DataElement*, ACE_Less_Than<int>, ACE_Null_Mutex> -#pragma instantiate ACE_RB_Tree_Node<int, DataElement*> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION*/ diff --git a/examples/APG/Containers/RB_Tree_Functors.cpp b/examples/APG/Containers/RB_Tree_Functors.cpp index 4c105e22897..cb71fd75d79 100644 --- a/examples/APG/Containers/RB_Tree_Functors.cpp +++ b/examples/APG/Containers/RB_Tree_Functors.cpp @@ -132,25 +132,3 @@ int ACE_TMAIN (int, ACE_TCHAR *[]) return te.run (); } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_RB_Tree <KeyType, DataElement*, -ACE_Less_Than<KeyType>, ACE_Null_Mutex> -; -template class Tree <KeyType, DataElement*> -; -template class ACE_RB_Tree_Iterator_Base<KeyType, DataElement*, ACE_Less_Than<KeyType>, ACE_Null_Mutex> -; -template class ACE_RB_Tree_Iterator<KeyType, DataElement*, ACE_Less_Than<KeyType>, ACE_Null_Mutex> -; -template class ACE_RB_Tree_Reverse_Iterator<KeyType, DataElement*, ACE_Less_Than<KeyType>, ACE_Null_Mutex> -; -template class ACE_RB_Tree_Node<KeyType, DataElement*> -; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_RB_Tree <KeyType, DataElement*,ACE_Less_Than<KeyType>, ACE_Null_Mutex> -#pragma instantiate Tree <KeyType, DataElement*> -#pragma instantiate ACE_RB_Tree_Iterator_Base<KeyType, DataElement*, ACE_Less_Than<int>, ACE_Null_Mutex> -#pragma instantiate ACE_RB_Tree_Iterator<KeyType, DataElement*, ACE_Less_Than<KeyType>, ACE_Null_Mutex> -#pragma instantiate ACE_RB_Tree_Reverse_Iterator<KeyType, DataElement*, ACE_Less_Than<KeyType>, ACE_Null_Mutex> -#pragma instantiate ACE_RB_Tree_Node<KeyType, DataElement*> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION*/ diff --git a/examples/APG/Containers/Sets.cpp b/examples/APG/Containers/Sets.cpp index 992546708e7..3eaec6f7bec 100644 --- a/examples/APG/Containers/Sets.cpp +++ b/examples/APG/Containers/Sets.cpp @@ -121,14 +121,3 @@ int ACE_TMAIN (int, ACE_TCHAR *[]) se.run (); return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Unbounded_Set<DataElement*>; -template class ACE_Unbounded_Set_Iterator<DataElement*>; -template class ACE_Bounded_Set<DataElement>; -template class ACE_Node<DataElement*>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Unbounded_Set<DataElement*> -#pragma instantitate ACE_Unbounded_Set_Iterator<DataElement*> -#pragma instantiate ACE_Bounded_Set<DataElement> -#pragma instantiate ACE_Node<DataElement*> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION*/ diff --git a/examples/APG/Containers/Stacks.cpp b/examples/APG/Containers/Stacks.cpp index 764045992d5..b02a243ab92 100644 --- a/examples/APG/Containers/Stacks.cpp +++ b/examples/APG/Containers/Stacks.cpp @@ -145,18 +145,3 @@ int ACE_TMAIN (int, ACE_TCHAR *[]) return se.run (); } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Bounded_Stack<DataElement>; -template class ACE_Bounded_Stack<DataElement*>; -template class ACE_Fixed_Stack<DataElement*, 100>; -template class ACE_Node<DataElement*>; -template class ACE_Unbounded_Stack<DataElement*>; -template class ACE_Unbounded_Stack_Iterator<DataElement*>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Bounded_Stack<DataElement> -#pragma instantiate ACE_Bounded_Stack<DataElement*> -#pragma instantiate ACE_Fixed_Stack<DataElement*, 100> -#pragma instantiate ACE_Node<DataElement*> -#pragma instantiate ACE_Unbounded_Stack<DataElement*> -#pragma instantiate ACE_Unbounded_Stack_Iterator<DataElement*> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION*/ diff --git a/examples/APG/Logging/Use_LogManager.cpp b/examples/APG/Logging/Use_LogManager.cpp index ddcbb758f87..76de7b7fb56 100644 --- a/examples/APG/Logging/Use_LogManager.cpp +++ b/examples/APG/Logging/Use_LogManager.cpp @@ -26,12 +26,8 @@ void foo (void) // Listing 1 // Listing 2 code/ch03 -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) - template class ACE_Singleton<LogManager, ACE_Null_Mutex>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Singleton<LogManager, ACE_Null_Mutex> -#elif defined (ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION) +#if defined (ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION) template ACE_Singleton<LogManager, ACE_Null_Mutex> * ACE_Singleton<LogManager, ACE_Null_Mutex>::singleton_; -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ +#endif /* ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION */ // Listing 2 diff --git a/examples/APG/Naming/Graph.cpp b/examples/APG/Naming/Graph.cpp index 79d0def14f3..62ca52afd0d 100644 --- a/examples/APG/Naming/Graph.cpp +++ b/examples/APG/Naming/Graph.cpp @@ -5,10 +5,6 @@ void Graph::graph (char *filename, Graphable_Element_List &data) { -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) - ACE_UNUSED_ARG (filename); - ACE_UNUSED_ARG (data); -#else data.sort (); ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Save graph to %C\n"), filename)); @@ -48,5 +44,4 @@ void Graph::graph (char *filename, Graphable_Element_List &data) } ACE_DEBUG ((LM_INFO, ACE_TEXT ("\n"))); } -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ } diff --git a/examples/APG/Naming/Graphable_Element.cpp b/examples/APG/Naming/Graphable_Element.cpp index 6b5d6c755e6..c3ff6ee7b41 100644 --- a/examples/APG/Naming/Graphable_Element.cpp +++ b/examples/APG/Naming/Graphable_Element.cpp @@ -2,12 +2,3 @@ #include "Graphable_Element.h" -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class _List_base<Graphable_Element, allocator<Graphable_Element> >; -template void list<Graphable_Element, allocator<Graphable_Element> >::sort(void); -template void list<Graphable_Element, allocator<Graphable_Element> >::merge(list<Graphable_Element, allocator<Graphable_Element> > &); -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -pragma instantiate _List_base<Graphable_Element, allocator<Graphable_Element> >; -pragma instantiate list<Graphable_Element, allocator<Graphable_Element> >::sort(void); -pragma instantiate list<Graphable_Element, allocator<Graphable_Element> >::merge(list<Graphable_Element, allocator<Graphable_Element> > &); -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/APG/Naming/Temperature_Grapher.cpp b/examples/APG/Naming/Temperature_Grapher.cpp index 4f1ef1bcff1..e11367af4a0 100644 --- a/examples/APG/Naming/Temperature_Grapher.cpp +++ b/examples/APG/Naming/Temperature_Grapher.cpp @@ -54,7 +54,6 @@ void Temperature_Grapher::update_graph (void) } // Listing 4 -#if !defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) // Listing 5 code/ch21 Graphable_Element_List graphable; ACE_BINDING_ITERATOR set_iterator (set); @@ -79,5 +78,4 @@ void Temperature_Grapher::update_graph (void) this->naming_context_.rebind ("lastGraphed", lastUpdate->int_value ()); // Listing 6 -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ } diff --git a/examples/APG/Proactor/HA_Proactive_Status.cpp b/examples/APG/Proactor/HA_Proactive_Status.cpp index e64656398ba..9d9b9dfb0e5 100644 --- a/examples/APG/Proactor/HA_Proactive_Status.cpp +++ b/examples/APG/Proactor/HA_Proactive_Status.cpp @@ -149,12 +149,6 @@ ACE_TMAIN (int, ACE_TCHAR *[]) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Asynch_Acceptor<HA_Proactive_Service>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Asynch_Acceptor<HA_Proactive_Service> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION*/ - #else int diff --git a/examples/APG/Reactor/Client.cpp b/examples/APG/Reactor/Client.cpp index 520b17f7ef1..b2773bbf7f3 100644 --- a/examples/APG/Reactor/Client.cpp +++ b/examples/APG/Reactor/Client.cpp @@ -115,15 +115,4 @@ int ACE_TMAIN (int, ACE_TCHAR *[]) // Listing 6 // Listing 7 code/ch07 -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Connector<Client, ACE_SOCK_CONNECTOR>; -template class ACE_Connector_Base<Client>; -template class ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH>; -template class ACE_NonBlocking_Connect_Handler<Client>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -# pragma instantiate ACE_Connector<Client, ACE_SOCK_CONNECTOR> -# pragma instantiate ACE_Connector_Base<Client> -# pragma instantiate ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH> -# pragma instantiate ACE_NonBlocking_Connect_Handler<Client> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ // Listing 7 diff --git a/examples/APG/Reactor/HAStatus-AC.cpp b/examples/APG/Reactor/HAStatus-AC.cpp index 24861113f85..c99a1c5036c 100644 --- a/examples/APG/Reactor/HAStatus-AC.cpp +++ b/examples/APG/Reactor/HAStatus-AC.cpp @@ -136,12 +136,4 @@ int ACE_TMAIN (int, ACE_TCHAR *[]) // Listing 2 // Listing 8 code/ch07 -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Acceptor<ClientService, ACE_SOCK_ACCEPTOR>; -template class ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Acceptor<ClientService, ACE_SOCK_ACCEPTOR> -#pragma instantiate \ - ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ // Listing 8 diff --git a/examples/APG/Shared_Memory/Hash_Map.cpp b/examples/APG/Shared_Memory/Hash_Map.cpp index 9b91f6a6d4b..b8d73e0045c 100644 --- a/examples/APG/Shared_Memory/Hash_Map.cpp +++ b/examples/APG/Shared_Memory/Hash_Map.cpp @@ -248,30 +248,3 @@ int ACE_TMAIN (int argc, ACE_TCHAR *argv[]) return 0; } // Listing 3 -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Allocator_Adapter<ACE_Malloc_T<ACE_MMAP_MEMORY_POOL,ACE_Process_Mutex,ACE_Control_Block> >; -template class ACE_Hash_Map_Entry<int,Record>; -template class ACE_Hash_Map_Manager_Ex<int,Record,ACE_Hash<int>,ACE_Equal_To<int>,ACE_Null_Mutex>; -template class ACE_Hash_Map_Iterator_Base_Ex<int,Record,ACE_Hash<int>,ACE_Equal_To<int>,ACE_Null_Mutex>; -template class ACE_Hash_Map_With_Allocator<int,Record>; -// The following instantiation is in ace/System_Time.cpp: -// template class ACE_Malloc <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex>; -template class ACE_Malloc_T<ACE_MMAP_MEMORY_POOL,ACE_Process_Mutex,ACE_Control_Block>; -template class ACE_Malloc_FIFO_Iterator <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex>; -template class ACE_Malloc_LIFO_Iterator <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex>; -template class ACE_Malloc_FIFO_Iterator_T <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex, ACE_Control_Block>; -template class ACE_Malloc_LIFO_Iterator_T <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex, ACE_Control_Block>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Allocator_Adapter<ACE_Malloc_T<ACE_MMAP_MEMORY_POOL,ACE_Process_Mutex,ACE_Control_Block> > -#pragma instantiate ACE_Hash_Map_Entry<int,Record> -#pragma instantiate ACE_Hash_Map_Manager_Ex<int,Record,ACE_Hash<int>,ACE_Equal_To<int>,ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<int,Record,ACE_Hash<int>,ACE_Equal_To<int>,ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_With_Allocator<int,Record> -#pragma instantiate ACE_Malloc_T<ACE_MMAP_MEMORY_POOL,ACE_Process_Mutex,ACE_Control_Block> -// The following instantiation is in ace/System_Time.cpp: -// #pragma instantiate ACE_Malloc <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex> -#pragma instantiate ACE_Malloc_FIFO_Iterator <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex> -#pragma instantiate ACE_Malloc_LIFO_Iterator <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex> -#pragma instantiate ACE_Malloc_FIFO_Iterator_T <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex, ACE_Control_Block> -#pragma instantiate ACE_Malloc_LIFO_Iterator_T <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex, ACE_Control_Block> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/APG/Shared_Memory/Malloc.cpp b/examples/APG/Shared_Memory/Malloc.cpp index 0eb7a79780c..7f1ef3a3579 100644 --- a/examples/APG/Shared_Memory/Malloc.cpp +++ b/examples/APG/Shared_Memory/Malloc.cpp @@ -111,18 +111,3 @@ int ACE_TMAIN (int argc, ACE_TCHAR *[]) } // Listing 4 -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -// The following instantiation is in ace/System_Time.cpp: -// template class ACE_Malloc <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex>; -template class ACE_Malloc_FIFO_Iterator <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex>; -template class ACE_Malloc_LIFO_Iterator <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex>; -template class ACE_Malloc_FIFO_Iterator_T <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex, ACE_Control_Block>; -template class ACE_Malloc_LIFO_Iterator_T <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex, ACE_Control_Block>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -// The following instantiation is in ace/System_Time.cpp: -// #pragma instantiate ACE_Malloc <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex> -#pragma instantiate ACE_Malloc_FIFO_Iterator <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex> -#pragma instantiate ACE_Malloc_LIFO_Iterator <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex> -#pragma instantiate ACE_Malloc_FIFO_Iterator_T <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex, ACE_Control_Block> -#pragma instantiate ACE_Malloc_LIFO_Iterator_T <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex, ACE_Control_Block> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/APG/Shared_Memory/PI_Malloc.cpp b/examples/APG/Shared_Memory/PI_Malloc.cpp index 42673c72b63..2d31ba96f35 100644 --- a/examples/APG/Shared_Memory/PI_Malloc.cpp +++ b/examples/APG/Shared_Memory/PI_Malloc.cpp @@ -138,13 +138,3 @@ int ACE_TMAIN (int argc, ACE_TCHAR *[]) } // Listing 3 -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Malloc_T <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex, ACE_PI_Control_Block>; -template class ACE_Malloc_FIFO_Iterator_T <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex, ACE_PI_Control_Block>; -template class ACE_Malloc_LIFO_Iterator_T <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex, ACE_PI_Control_Block>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Malloc_T <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex, ACE_PI_Control_Block> -#pragma instantiate ACE_Malloc_FIFO_Iterator_T <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex, ACE_PI_Control_Block> -#pragma instantiate ACE_Malloc_LIFO_Iterator_T <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex, ACE_PI_Control_Block> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - diff --git a/examples/APG/Shared_Memory/Pool_Growth.cpp b/examples/APG/Shared_Memory/Pool_Growth.cpp index 836058ad641..c354b098242 100644 --- a/examples/APG/Shared_Memory/Pool_Growth.cpp +++ b/examples/APG/Shared_Memory/Pool_Growth.cpp @@ -259,16 +259,3 @@ int ACE_TMAIN (int argc, ACE_TCHAR *argv[]) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Allocator_Adapter<ACE_Malloc<ACE_MMAP_MEMORY_POOL, ACE_Process_Mutex> >; -template class ACE_Malloc_T<ACE_MMAP_MEMORY_POOL, ACE_Process_Mutex, ACE_Control_Block>; -template class ACE_Node<Record>; -template class ACE_Unbounded_Queue<Record>; -template class ACE_Unbounded_Queue_Iterator<Record>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Allocator_Adapter<ACE_Malloc<ACE_MMAP_MEMORY_POOL, ACE_Process_Mutex> > -#pragma instantiate ACE_Malloc_T<ACE_MMAP_MEMORY_POOL, ACE_Process_Mutex, ACE_Control_Block> -#pragma instantiate ACE_Node<Record> -#pragma instantiate ACE_Unbounded_Queue<Record> -#pragma instantiate ACE_Unbounded_Queue_Iterator<Record> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/APG/Svc_Config/HA_Status_Dynamic.cpp b/examples/APG/Svc_Config/HA_Status_Dynamic.cpp index b2c15661a66..39f871a8bb3 100644 --- a/examples/APG/Svc_Config/HA_Status_Dynamic.cpp +++ b/examples/APG/Svc_Config/HA_Status_Dynamic.cpp @@ -111,10 +111,3 @@ HA_Status::info (ACE_TCHAR **str, size_t len) const ACE_FACTORY_DEFINE (HASTATUS, HA_Status) // Listing 4 -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH>; -template class ACE_Acceptor<ClientHandler, ACE_SOCK_ACCEPTOR>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -# pragma instantiate ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH>; -# pragma instantiate ACE_Acceptor<ClientHandler, ACE_SOCK_ACCEPTOR> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/APG/Svc_Config/HA_Status_Static.cpp b/examples/APG/Svc_Config/HA_Status_Static.cpp index b97c74a11d9..ef09bcaa5cd 100644 --- a/examples/APG/Svc_Config/HA_Status_Static.cpp +++ b/examples/APG/Svc_Config/HA_Status_Static.cpp @@ -119,10 +119,3 @@ ACE_STATIC_SVC_DEFINE (HA_Status_Descriptor, ACE_STATIC_SVC_REQUIRE (HA_Status_Descriptor) // Listing 4 -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH>; -template class ACE_Acceptor<ClientHandler, ACE_SOCK_ACCEPTOR>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -# pragma instantiate ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH>; -# pragma instantiate ACE_Acceptor<ClientHandler, ACE_SOCK_ACCEPTOR> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/APG/ThreadManagement/Async_Cancel.cpp b/examples/APG/ThreadManagement/Async_Cancel.cpp index 6e05d65ec0b..5d5d5fcf0e8 100644 --- a/examples/APG/ThreadManagement/Async_Cancel.cpp +++ b/examples/APG/ThreadManagement/Async_Cancel.cpp @@ -53,12 +53,6 @@ int ACE_TMAIN (int, ACE_TCHAR *[]) } // Listing 2 -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Task<ACE_MT_SYNCH>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -pragma instantiate ACE_Task<ACE_MT_SYNCH>; -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - #else /* ACE_HAS_PTHREADS */ int ACE_TMAIN (int, ACE_TCHAR *[]) { diff --git a/examples/APG/ThreadManagement/Signals.cpp b/examples/APG/ThreadManagement/Signals.cpp index 64c06eb5d30..1e8777acc9f 100644 --- a/examples/APG/ThreadManagement/Signals.cpp +++ b/examples/APG/ThreadManagement/Signals.cpp @@ -78,11 +78,6 @@ int ACE_TMAIN (int, ACE_TCHAR *[]) return 0; } // Listing 2 -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Task<ACE_MT_SYNCH>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -pragma instantiate ACE_Task<ACE_MT_SYNCH>; -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ #else #include "ace/OS_main.h" diff --git a/examples/APG/ThreadManagement/Signals2.cpp b/examples/APG/ThreadManagement/Signals2.cpp index 539849262a8..f8bdf5e8bb5 100644 --- a/examples/APG/ThreadManagement/Signals2.cpp +++ b/examples/APG/ThreadManagement/Signals2.cpp @@ -83,12 +83,6 @@ int ACE_TMAIN (int, ACE_TCHAR *[]) } // Listing 1 -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Task<ACE_MT_SYNCH>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -pragma instantiate ACE_Task<ACE_MT_SYNCH>; -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - #else #include "ace/OS_main.h" #include "ace/OS_NS_stdio.h" diff --git a/examples/APG/ThreadManagement/Start_Hook.cpp b/examples/APG/ThreadManagement/Start_Hook.cpp index c1d9916d578..1c4ad0794b7 100644 --- a/examples/APG/ThreadManagement/Start_Hook.cpp +++ b/examples/APG/ThreadManagement/Start_Hook.cpp @@ -58,8 +58,3 @@ int ACE_TMAIN (int, ACE_TCHAR *[]) } // Listing 2 -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_TSS<SecurityContext>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_TSS<SecurityContext> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/APG/ThreadPools/Futures.cpp b/examples/APG/ThreadPools/Futures.cpp index a57677d1f46..361a8bb43a2 100644 --- a/examples/APG/ThreadPools/Futures.cpp +++ b/examples/APG/ThreadPools/Futures.cpp @@ -308,30 +308,6 @@ int ACE_TMAIN (int, ACE_TCHAR *[]) } // Listing 5 -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Condition<ACE_Thread_Mutex>; -template class ACE_Future<ACE_String_Base<char>*>; -template class ACE_Future_Observer<ACE_String_Base<char>*>; -template class ACE_Future_Rep<ACE_String_Base<char>*>; -template class ACE_Node<Worker*>; -template class ACE_Node<ACE_Future_Observer<ACE_String_Base<char>*>*>; -template class ACE_Unbounded_Queue<Worker*>; -template class ACE_Unbounded_Queue_Iterator<Worker*>; -template class ACE_Unbounded_Set<ACE_Future_Observer<ACE_String_Base<char>*>*>; -template class ACE_Unbounded_Set_Iterator<ACE_Future_Observer<ACE_String_Base<char>*>*>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Condition<ACE_Thread_Mutex> -#pragma instantiate ACE_Future<ACE_String_Base<char>*> -#pragma instantiate ACE_Future_Observer<ACE_String_Base<char>*> -#pragma instantiate ACE_Future_Rep<ACE_String_Base<char>*> -#pragma instantiate ACE_Node<Worker*> -#pragma instantiate ACE_Node<ACE_Future_Observer<ACE_String_Base<char>*>*> -#pragma instantiate ACE_Unbounded_Queue<Worker*> -#pragma instantiate ACE_Unbounded_Queue_Iterator<Worker*> -#pragma instantiate ACE_Unbounded_Set<ACE_Future_Observer<ACE_String_Base<char>*>*> -#pragma instantiate ACE_Unbounded_Set_Iterator<ACE_Future_Observer<ACE_String_Base<char>*>*> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - #else #include "ace/OS_main.h" #include "ace/OS_NS_stdio.h" diff --git a/examples/APG/ThreadPools/LF_ThreadPool.cpp b/examples/APG/ThreadPools/LF_ThreadPool.cpp index 2e85ed41b3c..820e74c36e8 100644 --- a/examples/APG/ThreadPools/LF_ThreadPool.cpp +++ b/examples/APG/ThreadPools/LF_ThreadPool.cpp @@ -239,18 +239,6 @@ int ACE_TMAIN (int, ACE_TCHAR *[]) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Condition<ACE_Thread_Mutex>; -template class ACE_Node<Follower*>; -template class ACE_Unbounded_Queue<Follower*>; -template class ACE_Unbounded_Queue_Iterator<Follower*>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Condition<ACE_Thread_Mutex> -#pragma instantiate ACE_Node<Follower*> -#pragma instantiate ACE_Unbounded_Queue<Follower*> -#pragma instantiate ACE_Unbounded_Queue_Iterator<Follower*> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - #else #include "ace/OS_main.h" #include "ace/OS_NS_stdio.h" diff --git a/examples/APG/ThreadPools/TP_Reactor.cpp b/examples/APG/ThreadPools/TP_Reactor.cpp index ff9e11012db..9c82907a8e6 100644 --- a/examples/APG/ThreadPools/TP_Reactor.cpp +++ b/examples/APG/ThreadPools/TP_Reactor.cpp @@ -256,24 +256,6 @@ int ACE_TMAIN (int, ACE_TCHAR *[]) return 0; } // Listing 1 -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Accept_Strategy<Request_Handler, ACE_SOCK_ACCEPTOR>; -template class ACE_Concurrency_Strategy<Request_Handler>; -template class ACE_Creation_Strategy<Request_Handler>; -template class ACE_Scheduling_Strategy<Request_Handler>; -template class ACE_Acceptor<Request_Handler, ACE_SOCK_ACCEPTOR>; -template class ACE_Strategy_Acceptor<Request_Handler, ACE_SOCK_ACCEPTOR>; -template class ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_MT_SYNCH>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Accept_Strategy<Request_Handler, ACE_SOCK_ACCEPTOR> -#pragma instantiate ACE_Concurrency_Strategy<Request_Handler> -#pragma instantiate ACE_Creation_Strategy<Request_Handler> -#pragma instantiate ACE_Scheduling_Strategy<Request_Handler> -#pragma instantiate ACE_Acceptor<Request_Handler, ACE_SOCK_ACCEPTOR> -#pragma instantiate ACE_Strategy_Acceptor<Request_Handler, ACE_SOCK_ACCEPTOR> -#pragma instantiate ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_MT_SYNCH> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - #else #include "ace/OS_main.h" #include "ace/OS_NS_stdio.h" diff --git a/examples/APG/ThreadPools/ThreadPool.cpp b/examples/APG/ThreadPools/ThreadPool.cpp index 92b8146a9e5..684762efcbf 100644 --- a/examples/APG/ThreadPools/ThreadPool.cpp +++ b/examples/APG/ThreadPools/ThreadPool.cpp @@ -258,18 +258,6 @@ int ACE_TMAIN (int, ACE_TCHAR *[]) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Condition<ACE_Thread_Mutex>; -template class ACE_Node<Worker*>; -template class ACE_Unbounded_Queue<Worker*>; -template class ACE_Unbounded_Queue_Iterator<Worker*>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Condition<ACE_Thread_Mutex> -#pragma instantiate ACE_Node<Worker*> -#pragma instantiate ACE_Unbounded_Queue<Worker*> -#pragma instantiate ACE_Unbounded_Queue_Iterator<Worker*> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - #else #include "ace/OS_main.h" #include "ace/OS_NS_stdio.h" diff --git a/examples/APG/ThreadSafety/Atomic_Op.cpp b/examples/APG/ThreadSafety/Atomic_Op.cpp index f09a65d6d90..d315d433a66 100644 --- a/examples/APG/ThreadSafety/Atomic_Op.cpp +++ b/examples/APG/ThreadSafety/Atomic_Op.cpp @@ -56,7 +56,7 @@ public: { return (item == MAX_PROD); } - + private: int * buf_; SafeUInt& in_; @@ -93,7 +93,7 @@ public: return 0; } - + int check_termination (int item) { return (item == MAX_PROD); @@ -125,14 +125,3 @@ int ACE_TMAIN (int, ACE_TCHAR *[]) } // Listing 4 -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Atomic_Op<ACE_Null_Mutex, unsigned int>; -template class ACE_Atomic_Op<ACE_Null_Mutex, int>; -template class ACE_Atomic_Op_Ex<ACE_Null_Mutex, unsigned int>; -template class ACE_Atomic_Op_Ex<ACE_Null_Mutex, int>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Atomic_Op<ACE_Null_Mutex, unsigned int> -#pragma instantiate ACE_Atomic_Op<ACE_Null_Mutex, int> -#pragma instantiate ACE_Atomic_Op_Ex<ACE_Null_Mutex, unsigned int> -#pragma instantiate ACE_Atomic_Op_Ex<ACE_Null_Mutex, int> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/APG/ThreadSafety/RW_Lock.cpp b/examples/APG/ThreadSafety/RW_Lock.cpp index 3e2fd4c9f17..83f1287bbdb 100644 --- a/examples/APG/ThreadSafety/RW_Lock.cpp +++ b/examples/APG/ThreadSafety/RW_Lock.cpp @@ -126,12 +126,6 @@ int ACE_TMAIN (int, ACE_TCHAR *[]) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_DLList<Device>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_DLList<Device> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - #else #include "ace/OS_main.h" #include "ace/OS_NS_stdio.h" diff --git a/examples/APG/ThreadSafety/TSS.cpp b/examples/APG/ThreadSafety/TSS.cpp index 81553c8e8b3..8cc875cb3ee 100644 --- a/examples/APG/ThreadSafety/TSS.cpp +++ b/examples/APG/ThreadSafety/TSS.cpp @@ -62,20 +62,6 @@ int ACE_TMAIN (int, ACE_TCHAR *[]) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_TSS<ClientContext>; -template class ACE_Hash_Map_Entry<const char*,void*>; -template class ACE_Hash_Map_Manager<const char *,void*,ACE_Null_Mutex>; -template class ACE_Hash_Map_Manager_Ex<const char*,void*,ACE_Hash<const char*>,ACE_Equal_To<const char*>,ACE_Null_Mutex>; -template class ACE_Hash_Map_Iterator_Base_Ex<const char*,void*,ACE_Hash<const char*>, ACE_Equal_To<const char*>, ACE_Null_Mutex>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_TSS<ClientContext> -#pragma instantiate ACE_Hash_Map_Entry<const char*,void*> -#pragma instantiate ACE_Hash_Map_Manager<const char *,void*,ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Manager_Ex<const char*,void*,ACE_Hash<const char*>,ACE_Equal_To<const char*>,ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<const char*,void*,ACE_Hash<const char*>, ACE_Equal_To<const char*>, ACE_Null_Mutex> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - #else #include "ace/OS_main.h" #include "ace/OS_NS_stdio.h" diff --git a/examples/APG/Threads/Condition_Variables.cpp b/examples/APG/Threads/Condition_Variables.cpp index 579d655cca6..ccb29895032 100644 --- a/examples/APG/Threads/Condition_Variables.cpp +++ b/examples/APG/Threads/Condition_Variables.cpp @@ -56,7 +56,7 @@ HA_CommandHandler::svc (void) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%t) Handler Thread running\n"))); - + for (int i = 0; i < NUM_USES; i++) { this->mutex_.acquire (); @@ -72,11 +72,11 @@ HA_CommandHandler::svc (void) this->waitCond_.signal (); } - + return 0; } // Listing 2 -int +int HA_Device_Repository::update_device (int device_id) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%t) Updating device %d\n"), @@ -105,12 +105,6 @@ int ACE_TMAIN (int, ACE_TCHAR *[]) } // Listing 3 -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Condition<ACE_Thread_Mutex>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Condition<ACE_Thread_Mutex> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - #else #include "ace/OS_main.h" #include "ace/OS_NS_stdio.h" diff --git a/examples/APG/Threads/Message_Queue.cpp b/examples/APG/Threads/Message_Queue.cpp index dfecc8cfcfb..3544d6bcefa 100644 --- a/examples/APG/Threads/Message_Queue.cpp +++ b/examples/APG/Threads/Message_Queue.cpp @@ -166,14 +166,6 @@ int ACE_TMAIN (int argc, ACE_TCHAR *argv[]) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Acceptor<Message_Receiver, ACE_SOCK_ACCEPTOR>; -template class ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_MT_SYNCH>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Acceptor<Message_Receiver, ACE_SOCK_ACCEPTOR> -#pragma instantiate ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_MT_SYNCH> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - #else #include "ace/OS_main.h" #include "ace/OS_NS_stdio.h" diff --git a/examples/APG/Timers/Alarm.cpp b/examples/APG/Timers/Alarm.cpp index e66f1ed0465..c12d39b367d 100644 --- a/examples/APG/Timers/Alarm.cpp +++ b/examples/APG/Timers/Alarm.cpp @@ -24,7 +24,7 @@ public: ACE_ASSERT ((*val) == id_); ACE_UNUSED_ARG (val); - + ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Timer expired\n"))); return 0; } @@ -39,7 +39,7 @@ int ACE_TMAIN (int, ACE_TCHAR *[]) // Create the timer such that it blocks all signals // when it goes off. Timer timer; - + // Schedule a timer to go off 2 seconds later and then // after every 4 seconds. CB cb (1); @@ -48,15 +48,10 @@ int ACE_TMAIN (int, ACE_TCHAR *[]) ACE_Time_Value repeat (4); initial += ACE_OS::gettimeofday (); timer.schedule (&cb, &arg, initial, repeat); - + while (1) // Don't let the main thread exit. ACE_OS::sleep (2); ACE_NOTREACHED (return 0); // Not reached. } // Listing 2 -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Async_Timer_Queue_Adapter<ACE_Timer_Heap>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Async_Timer_Queue_Adapter<ACE_Timer_Heap> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION*/ diff --git a/examples/APG/Timers/PTimerDispatcher.cpp b/examples/APG/Timers/PTimerDispatcher.cpp index 3198b167725..405c5771789 100644 --- a/examples/APG/Timers/PTimerDispatcher.cpp +++ b/examples/APG/Timers/PTimerDispatcher.cpp @@ -63,11 +63,7 @@ PTimer_Dispatcher::reset_interval (long timer_id, return timer_queue_->reset_interval (timer_id, interval); } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Singleton <PTimer_Dispatcher, ACE_Null_Mutex>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Singleton <PTimer_Dispatcher, ACE_Null_Mutex> -#elif defined (ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION) +#if defined (ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION) template ACE_Singleton<PTimer_Dispatcher, ACE_Null_Mutex> * ACE_Singleton<PTimer_Dispatcher, ACE_Null_Mutex>::singleton_; -# endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ +# endif /* ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION */ diff --git a/examples/APG/Timers/Task.cpp b/examples/APG/Timers/Task.cpp index cf2a87bae2d..4774eb1444f 100644 --- a/examples/APG/Timers/Task.cpp +++ b/examples/APG/Timers/Task.cpp @@ -71,8 +71,3 @@ int ACE_TMAIN (int, ACE_TCHAR *[]) } // Listing 3 -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Thread_Timer_Queue_Adapter<ACE_Timer_Heap>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Thread_Timer_Queue_Adapter<ACE_Timer_Heap> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION*/ diff --git a/examples/APG/Timers/TimerDispatcher.cpp b/examples/APG/Timers/TimerDispatcher.cpp index b93bd0b2fc5..818d762b738 100644 --- a/examples/APG/Timers/TimerDispatcher.cpp +++ b/examples/APG/Timers/TimerDispatcher.cpp @@ -67,11 +67,7 @@ Timer_Dispatcher::reset_interval (long timer_id, return timer_queue_->reset_interval(timer_id, interval); } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Singleton <Timer_Dispatcher, ACE_Null_Mutex>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Singleton <Timer_Dispatcher, ACE_Null_Mutex> -#elif defined (ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION) +#if defined (ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION) template ACE_Singleton<Timer_Dispatcher, ACE_Null_Mutex> * ACE_Singleton<Timer_Dispatcher, ACE_Null_Mutex>::singleton_; -# endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ +# endif /* ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION */ diff --git a/examples/APG/Timers/Upcall.cpp b/examples/APG/Timers/Upcall.cpp index fa466196c07..cb00ae6113a 100644 --- a/examples/APG/Timers/Upcall.cpp +++ b/examples/APG/Timers/Upcall.cpp @@ -170,26 +170,3 @@ int ACE_TMAIN (int, ACE_TCHAR *[]) } // Listing 3 -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Free_List<ACE_Timer_Node_T<PCB*> >; -template class ACE_Locked_Free_List<ACE_Timer_Node_T<PCB*>, ACE_Null_Mutex>; -template class ACE_Timer_Node_T<PCB*>; -template class ACE_Timer_Heap_T<PCB*, UpcallHandler, ACE_Null_Mutex>; -template class ACE_Timer_Heap_Iterator_T<PCB*, UpcallHandler, ACE_Null_Mutex>; -template class ACE_Timer_Queue_T<PCB*, UpcallHandler, ACE_Null_Mutex>; -template class ACE_Timer_Queue_Iterator_T<PCB*, UpcallHandler, ACE_Null_Mutex>; -template class ACE_Node<ACE_Timer_Node_T<PCB*>*>; -template class ACE_Unbounded_Set<ACE_Timer_Node_T<PCB*>*>; -template class ACE_Unbounded_Set_Iterator<ACE_Timer_Node_T<PCB*>*>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Free_List<ACE_Timer_Node_T<PCB*> > -#pragma instantiate ACE_Locked_Free_List<ACE_Timer_Node_T<PCB*>, ACE_Null_Mutex> -#pragma instantiate ACE_Timer_Node_T<PCB*> -#pragma instantiate ACE_Timer_Heap_T<PCB*, UpcallHandler, ACE_Null_Mutex> -#pragma instantiate ACE_Timer_Heap_Iterator_T<PCB*, UpcallHandler, ACE_Null_Mutex> -#pragma instantiate ACE_Timer_Queue_T<PCB*, UpcallHandler, ACE_Null_Mutex> -#pragma instantiate ACE_Timer_Queue_Iterator_T<PCB*, UpcallHandler, ACE_Null_Mutex> -#pragma instantiate ACE_Node<ACE_Timer_Node_T<PCB*>*> -#pragma instantiate ACE_Unbounded_Set<ACE_Timer_Node_T<PCB*>*> -#pragma instantiate ACE_Unbounded_Set_Iterator<ACE_Timer_Node_T<PCB*>*> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION*/ diff --git a/examples/Bounded_Packet_Relay/Thread_Bounded_Packet_Relay.cpp b/examples/Bounded_Packet_Relay/Thread_Bounded_Packet_Relay.cpp index 1e8bfc77d94..a2f179a5348 100644 --- a/examples/Bounded_Packet_Relay/Thread_Bounded_Packet_Relay.cpp +++ b/examples/Bounded_Packet_Relay/Thread_Bounded_Packet_Relay.cpp @@ -768,42 +768,3 @@ Thread_Bounded_Packet_Relay_Driver::run (void) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Thread_Timer_Queue_Adapter<Timer_Heap>; -template class Bounded_Packet_Relay_Driver<Thread_Timer_Queue>; -template class ACE_Command_Callback<User_Input_Task, User_Input_Task::ACTION>; -template class ACE_Command_Callback<BPR_Handler_Base, BPR_Handler_Base::ACTION>; -template class ACE_Command_Callback<Send_Handler, Send_Handler::ACTION>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Thread_Timer_Queue_Adapter<Timer_Heap> -#pragma instantiate Bounded_Packet_Relay_Driver<Thread_Timer_Queue> -#pragma instantiate ACE_Command_Callback<User_Input_Task, User_Input_Task::ACTION> -#pragma instantiate ACE_Command_Callback<BPR_Handler_Base, BPR_Handler_Base::ACTION> -#pragma instantiate ACE_Command_Callback<Send_Handler, Send_Handler::ACTION> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - -#if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0) -// These templates will specialized in libACE.* if the platforms does -// not define ACE_MT_SAFE. - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Thread_Condition<ACE_Thread_Mutex>; -template class ACE_Condition<ACE_Thread_Mutex>; -template class ACE_Event_Handler_Handle_Timeout_Upcall<ACE_Null_Mutex>; -template class ACE_Timer_Queue_T<ACE_Event_Handler *, ACE_Event_Handler_Handle_Timeout_Upcall<ACE_Null_Mutex>, ACE_Null_Mutex>; -template class ACE_Timer_Heap_T<ACE_Event_Handler *, ACE_Event_Handler_Handle_Timeout_Upcall<ACE_Null_Mutex>, ACE_Null_Mutex>; -template class ACE_Timer_Heap_Iterator_T<ACE_Event_Handler *, ACE_Event_Handler_Handle_Timeout_Upcall<ACE_Null_Mutex>, ACE_Null_Mutex>; -template class ACE_Timer_Queue_Iterator_T<ACE_Event_Handler *, ACE_Event_Handler_Handle_Timeout_Upcall<ACE_Null_Mutex>, ACE_Null_Mutex>; -template class ACE_Unbounded_Queue <ACE_Command_Base*>; -template class ACE_Node <ACE_Command_Base *>; -template class ACE_Unbounded_Queue_Iterator <ACE_Command_Base *>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Thread_Condition<ACE_Thread_Mutex> -#pragma instantiate ACE_Condition<ACE_Thread_Mutex> -#pragma instantiate ACE_Event_Handler_Handle_Timeout_Upcall<ACE_Null_Mutex> -#pragma instantiate ACE_Timer_Queue_T<ACE_Event_Handler *, ACE_Event_Handler_Handle_Timeout_Upcall<ACE_Null_Mutex>, ACE_Null_Mutex> -#pragma instantiate ACE_Timer_Heap_T<ACE_Event_Handler *, ACE_Event_Handler_Handle_Timeout_Upcall<ACE_Null_Mutex>, ACE_Null_Mutex> -#pragma instantiate ACE_Timer_Heap_Iterator_T<ACE_Event_Handler *, ACE_Event_Handler_Handle_Timeout_Upcall<ACE_Null_Mutex>, ACE_Null_Mutex> -#pragma instantiate ACE_Timer_Queue_Iterator_T<ACE_Event_Handler *, ACE_Event_Handler_Handle_Timeout_Upcall<ACE_Null_Mutex>, ACE_Null_Mutex> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ -#endif /* ACE_MT_SAFE */ diff --git a/examples/Bounded_Packet_Relay/bpr_thread.cpp b/examples/Bounded_Packet_Relay/bpr_thread.cpp index bc6f0f607aa..0a564ecd2a5 100644 --- a/examples/Bounded_Packet_Relay/bpr_thread.cpp +++ b/examples/Bounded_Packet_Relay/bpr_thread.cpp @@ -120,12 +120,3 @@ ACE_TMAIN (int, ACE_TCHAR *[]) // All dynamically allocated memory is released when main() returns. } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class auto_ptr <THREAD_BOUNDED_PACKET_RELAY_DRIVER>; -template class ACE_Auto_Basic_Ptr <THREAD_BOUNDED_PACKET_RELAY_DRIVER>; -template class ACE_Command_Callback <Bounded_Packet_Relay, Bounded_Packet_Relay::ACTION>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate auto_ptr <THREAD_BOUNDED_PACKET_RELAY_DRIVER> -#pragma instantiate ACE_Auto_Basic_Ptr <THREAD_BOUNDED_PACKET_RELAY_DRIVER> -#pragma instantiate ACE_Command_Callback <Bounded_Packet_Relay, Bounded_Packet_Relay::ACTION> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/C++NPv1/RT_Thread_Per_Connection_Logging_Server.cpp b/examples/C++NPv1/RT_Thread_Per_Connection_Logging_Server.cpp index 465c8ae8f96..febbf1964d5 100644 --- a/examples/C++NPv1/RT_Thread_Per_Connection_Logging_Server.cpp +++ b/examples/C++NPv1/RT_Thread_Per_Connection_Logging_Server.cpp @@ -130,9 +130,3 @@ int main (int argc, char *argv[]) return ACE_Thread_Manager::instance ()->wait (); } - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class auto_ptr<Thread_Per_Connection_Logging_Server::Thread_Args>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate auto_ptr<Thread_Per_Connection_Logging_Server::Thread_Args> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/C++NPv1/Reactive_Logging_Server_Ex.cpp b/examples/C++NPv1/Reactive_Logging_Server_Ex.cpp index 8999d7a9651..b8bc363180a 100644 --- a/examples/C++NPv1/Reactive_Logging_Server_Ex.cpp +++ b/examples/C++NPv1/Reactive_Logging_Server_Ex.cpp @@ -18,19 +18,3 @@ int main (int argc, char *argv[]) return 0; } - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Hash_Map_Entry<ACE_HANDLE, ACE_FILE_IO *>; -template class ACE_Hash_Map_Manager<ACE_HANDLE, ACE_FILE_IO *, ACE_Null_Mutex>; -template class ACE_Hash_Map_Manager_Ex<ACE_HANDLE, ACE_FILE_IO *, ACE_Hash<ACE_HANDLE>, ACE_Equal_To<ACE_HANDLE>, ACE_Null_Mutex>; -template class ACE_Hash_Map_Iterator_Base_Ex<ACE_HANDLE, ACE_FILE_IO *, ACE_Hash<ACE_HANDLE>, ACE_Equal_To<ACE_HANDLE>, ACE_Null_Mutex>; -template class ACE_Hash_Map_Iterator_Ex<ACE_HANDLE, ACE_FILE_IO *, ACE_Hash<ACE_HANDLE>, ACE_Equal_To<ACE_HANDLE>, ACE_Null_Mutex>; -template class ACE_Hash_Map_Reverse_Iterator_Ex<ACE_HANDLE, ACE_FILE_IO *, ACE_Hash<ACE_HANDLE>, ACE_Equal_To<ACE_HANDLE>, ACE_Null_Mutex>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Hash_Map_Entry<ACE_HANDLE, ACE_FILE_IO *> -#pragma instantiate ACE_Hash_Map_Manager<ACE_HANDLE, ACE_FILE_IO *, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Manager_Ex<ACE_HANDLE, ACE_FILE_IO *, ACE_Hash<ACE_HANDLE>, ACE_Equal_To<ACE_HANDLE>, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<ACE_HANDLE, ACE_FILE_IO *, ACE_Hash<ACE_HANDLE>, ACE_Equal_To<ACE_HANDLE>, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Iterator_Ex<ACE_HANDLE, ACE_FILE_IO *, ACE_Hash<ACE_HANDLE>, ACE_Equal_To<ACE_HANDLE>, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<ACE_HANDLE, ACE_FILE_IO *, ACE_Hash<ACE_HANDLE>, ACE_Equal_To<ACE_HANDLE>, ACE_Null_Mutex> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/C++NPv1/Thread_Per_Connection_Logging_Server.cpp b/examples/C++NPv1/Thread_Per_Connection_Logging_Server.cpp index e2c37bb0ef2..3737957ff70 100644 --- a/examples/C++NPv1/Thread_Per_Connection_Logging_Server.cpp +++ b/examples/C++NPv1/Thread_Per_Connection_Logging_Server.cpp @@ -91,9 +91,3 @@ int main (int argc, char *argv[]) return ACE_Thread_Manager::instance ()->wait (); } - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class auto_ptr<Thread_Per_Connection_Logging_Server::Thread_Args>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate auto_ptr<Thread_Per_Connection_Logging_Server::Thread_Args> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/C++NPv2/Reactor_Logging_Server.cpp b/examples/C++NPv2/Reactor_Logging_Server.cpp index 81a19b28da0..b36539c2a6d 100644 --- a/examples/C++NPv2/Reactor_Logging_Server.cpp +++ b/examples/C++NPv2/Reactor_Logging_Server.cpp @@ -27,8 +27,3 @@ int main (int argc, char *argv[]) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class Reactor_Logging_Server<Logging_Acceptor_Ex>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate Reactor_Logging_Server<Logging_Acceptor_Ex> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/C++NPv2/SLD.cpp b/examples/C++NPv2/SLD.cpp index abea1c1dad4..3aef89d0df6 100644 --- a/examples/C++NPv2/SLD.cpp +++ b/examples/C++NPv2/SLD.cpp @@ -15,9 +15,3 @@ typedef Reactor_Logging_Server_Adapter<Logging_Acceptor> ACE_FACTORY_DEFINE (SLD, Server_Logging_Daemon) -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class Reactor_Logging_Server_Adapter<Logging_Acceptor>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate Reactor_Logging_Server_Adapter<Logging_Acceptor> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - diff --git a/examples/C++NPv2/SLDex.cpp b/examples/C++NPv2/SLDex.cpp index 1ce99f950da..fbaf7cb3111 100644 --- a/examples/C++NPv2/SLDex.cpp +++ b/examples/C++NPv2/SLDex.cpp @@ -15,9 +15,3 @@ typedef Reactor_Logging_Server_Adapter<Logging_Acceptor_Ex> ACE_FACTORY_DEFINE (SLDEX, Server_Logging_Daemon_Ex) -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class Reactor_Logging_Server_Adapter<Logging_Acceptor_Ex>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate Reactor_Logging_Server_Adapter<Logging_Acceptor_Ex> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - diff --git a/examples/C++NPv2/Select_Reactor_Logging_Server.cpp b/examples/C++NPv2/Select_Reactor_Logging_Server.cpp index db7e3bc1a20..24123c3b3c6 100644 --- a/examples/C++NPv2/Select_Reactor_Logging_Server.cpp +++ b/examples/C++NPv2/Select_Reactor_Logging_Server.cpp @@ -103,8 +103,3 @@ int main (int argc, char *argv[]) return ACE_Thread_Manager::instance ()->wait (); } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class Reactor_Logging_Server<Logging_Acceptor_Ex>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate Reactor_Logging_Server<Logging_Acceptor_Ex> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/C++NPv2/TPC_Logging_Server.cpp b/examples/C++NPv2/TPC_Logging_Server.cpp index c001f25c453..b6ce76e1d40 100644 --- a/examples/C++NPv2/TPC_Logging_Server.cpp +++ b/examples/C++NPv2/TPC_Logging_Server.cpp @@ -104,8 +104,3 @@ typedef Reactor_Logging_Server_Adapter<TPC_Logging_Acceptor> ACE_FACTORY_DEFINE (TPCLS, TPC_Logging_Server) -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class Reactor_Logging_Server_Adapter<TPC_Logging_Acceptor>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate Reactor_Logging_Server_Adapter<TPC_Logging_Acceptor> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/C++NPv2/TP_Logging_Server.cpp b/examples/C++NPv2/TP_Logging_Server.cpp index b591ef425b7..7342cf4c757 100644 --- a/examples/C++NPv2/TP_Logging_Server.cpp +++ b/examples/C++NPv2/TP_Logging_Server.cpp @@ -62,13 +62,9 @@ int TP_Logging_Task::svc () { ACE_FACTORY_DEFINE (TPLS, TP_Logging_Server) -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class Reactor_Logging_Server<TP_Logging_Acceptor>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate Reactor_Logging_Server<TP_Logging_Acceptor> -#elif defined (ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION) +#if defined (ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION) template ACE_Singleton<TP_Logging_Task, ACE_Null_Mutex> * ACE_Singleton<TP_Logging_Task, ACE_Null_Mutex>::singleton_; template ACE_Unmanaged_Singleton<TP_Logging_Task, ACE_Null_Mutex> * ACE_Unmanaged_Singleton<TP_Logging_Task, ACE_Null_Mutex>::singleton_; -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ +#endif /* ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION */ diff --git a/examples/C++NPv2/TP_Reactor_Logging_Server.cpp b/examples/C++NPv2/TP_Reactor_Logging_Server.cpp index 0caf145a114..0d3216fe4e5 100644 --- a/examples/C++NPv2/TP_Reactor_Logging_Server.cpp +++ b/examples/C++NPv2/TP_Reactor_Logging_Server.cpp @@ -115,8 +115,3 @@ int main (int argc, char *argv[]) return ACE_Thread_Manager::instance ()->wait (); } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class Reactor_Logging_Server<Logging_Acceptor_Ex>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate Reactor_Logging_Server<Logging_Acceptor_Ex> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/C++NPv2/display_logfile.cpp b/examples/C++NPv2/display_logfile.cpp index 40d4ddbc45f..19f251e9463 100644 --- a/examples/C++NPv2/display_logfile.cpp +++ b/examples/C++NPv2/display_logfile.cpp @@ -359,8 +359,3 @@ int ACE_TMAIN (int argc, ACE_TCHAR *argv[]) return 1; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Lock_Adapter<ACE_Thread_Mutex>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Lock_Adapter<ACE_Thread_Mutex> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/DLL/test_dll.cpp b/examples/DLL/test_dll.cpp index fce379da943..10dbcbddaa4 100644 --- a/examples/DLL/test_dll.cpp +++ b/examples/DLL/test_dll.cpp @@ -72,8 +72,3 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class auto_ptr <Magazine>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate auto_ptr <Magazine> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/Export/dll.cpp b/examples/Export/dll.cpp index 7e2f969c3fa..07705db9d59 100644 --- a/examples/Export/dll.cpp +++ b/examples/Export/dll.cpp @@ -10,7 +10,7 @@ test_function () return RETVAL; } -int +int test_class::method () { return RETVAL; @@ -22,10 +22,6 @@ get_dll_singleton () return TEST_SINGLETON::instance (); } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Singleton<test_class,ACE_Null_Mutex>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Singleton<test_class,ACE_Null_Mutex> -#elif defined (ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION) +#if defined (ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION) template ACE_Singleton<test_class, ACE_Null_Mutex> *ACE_Singleton<test_class, ACE_Null_Mutex>::singleton_; -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ +#endif /* ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION */ diff --git a/examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp b/examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp index f681defd2f9..3428b02cd12 100644 --- a/examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp +++ b/examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp @@ -418,11 +418,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Singleton<Options, ACE_SYNCH_RECURSIVE_MUTEX>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Singleton<Options, ACE_SYNCH_RECURSIVE_MUTEX> -#elif defined (ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION) +#if defined (ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION) template ACE_Singleton<Options, ACE_SYNCH_RECURSIVE_MUTEX> * ACE_Singleton<Options, ACE_SYNCH_RECURSIVE_MUTEX>::singleton_; -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ +#endif /* ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION */ diff --git a/examples/IPC_SAP/SOCK_SAP/CPP-inserver-fancy.cpp b/examples/IPC_SAP/SOCK_SAP/CPP-inserver-fancy.cpp index aa42b496efa..43df0572f74 100644 --- a/examples/IPC_SAP/SOCK_SAP/CPP-inserver-fancy.cpp +++ b/examples/IPC_SAP/SOCK_SAP/CPP-inserver-fancy.cpp @@ -576,13 +576,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) return server.handle_events (); } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Singleton<Options, ACE_SYNCH_RECURSIVE_MUTEX>; -template class ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Singleton<Options, ACE_SYNCH_RECURSIVE_MUTEX> -#pragma instantiate ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH> -#elif defined (ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION) +#if defined (ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION) template ACE_Singleton<Options, ACE_SYNCH_RECURSIVE_MUTEX> * ACE_Singleton<Options, ACE_SYNCH_RECURSIVE_MUTEX>::singleton_; -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ +#endif /* ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION */ diff --git a/examples/IPC_SAP/SOCK_SAP/CPP-memclient.cpp b/examples/IPC_SAP/SOCK_SAP/CPP-memclient.cpp index e7ebe811fd2..59c4beaa487 100644 --- a/examples/IPC_SAP/SOCK_SAP/CPP-memclient.cpp +++ b/examples/IPC_SAP/SOCK_SAP/CPP-memclient.cpp @@ -51,6 +51,3 @@ int ACE_TMAIN (int argc, ACE_TCHAR *argv[]) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/IPC_SAP/SSL_SAP/SSL-client-simple.cpp b/examples/IPC_SAP/SSL_SAP/SSL-client-simple.cpp index d647b910274..31f76d4826a 100644 --- a/examples/IPC_SAP/SSL_SAP/SSL-client-simple.cpp +++ b/examples/IPC_SAP/SSL_SAP/SSL-client-simple.cpp @@ -375,8 +375,3 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Singleton<Options, ACE_Null_Mutex>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Singleton<Options, ACE_Null_Mutex> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/IPC_SAP/SSL_SAP/SSL-client.cpp b/examples/IPC_SAP/SSL_SAP/SSL-client.cpp index 6539de3b500..539b97c931c 100644 --- a/examples/IPC_SAP/SSL_SAP/SSL-client.cpp +++ b/examples/IPC_SAP/SSL_SAP/SSL-client.cpp @@ -416,8 +416,3 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Singleton<Options, ACE_SYNCH_RECURSIVE_MUTEX>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Singleton<Options, ACE_SYNCH_RECURSIVE_MUTEX> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/IPC_SAP/SSL_SAP/SSL-server-fancy.cpp b/examples/IPC_SAP/SSL_SAP/SSL-server-fancy.cpp index b749c45f7f1..e2d2c8ad0c1 100644 --- a/examples/IPC_SAP/SSL_SAP/SSL-server-fancy.cpp +++ b/examples/IPC_SAP/SSL_SAP/SSL-server-fancy.cpp @@ -604,10 +604,3 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) return server.handle_events (); } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Singleton<Options, ACE_SYNCH_RECURSIVE_MUTEX>; -template class ACE_Svc_Handler<ACE_SSL_SOCK_STREAM, ACE_NULL_SYNCH>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Singleton<Options, ACE_SYNCH_RECURSIVE_MUTEX> -#pragma instantiate ACE_Svc_Handler<ACE_SSL_SOCK_STREAM, ACE_NULL_SYNCH> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/Map_Manager/test_hash_map_manager.cpp b/examples/Map_Manager/test_hash_map_manager.cpp index 882ba564d30..91e08e5c58c 100644 --- a/examples/Map_Manager/test_hash_map_manager.cpp +++ b/examples/Map_Manager/test_hash_map_manager.cpp @@ -78,31 +78,3 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) return 0; } - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) - -template class ACE_Hash_Map_Entry<ACE_TString, ACE_TString>; -template class ACE_Hash_Map_Iterator_Base_Ex<ACE_TString, ACE_TString, ACE_Hash<ACE_TString>, ACE_Equal_To<ACE_TString>, ACE_SYNCH_RW_MUTEX>; -template class ACE_Hash_Map_Iterator<ACE_TString, ACE_TString, ACE_SYNCH_RW_MUTEX>; -template class ACE_Hash_Map_Iterator_Ex<ACE_TString, ACE_TString, ACE_Hash<ACE_TString>, ACE_Equal_To<ACE_TString>, ACE_SYNCH_RW_MUTEX>; -template class ACE_Hash_Map_Reverse_Iterator<ACE_TString, ACE_TString, ACE_SYNCH_RW_MUTEX>; -template class ACE_Hash_Map_Reverse_Iterator_Ex<ACE_TString, ACE_TString, ACE_Hash<ACE_TString>, ACE_Equal_To<ACE_TString>, ACE_SYNCH_RW_MUTEX>; -template class ACE_Hash_Map_Manager<ACE_TString, ACE_TString, ACE_SYNCH_RW_MUTEX>; -template class ACE_Hash_Map_Manager_Ex<ACE_TString, ACE_TString, ACE_Hash<ACE_TString>, ACE_Equal_To<ACE_TString>, ACE_SYNCH_RW_MUTEX>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) - -#if defined(ACE_HAS_THREADS) -#pragma instantiate ACE_Guard<ACE_SYNCH_RW_MUTEX> -#pragma instantiate ACE_Read_Guard<ACE_SYNCH_RW_MUTEX> -#pragma instantiate ACE_Write_Guard<ACE_SYNCH_RW_MUTEX> -#endif /* ACE_HAS_THREADS */ - -#pragma instantiate ACE_Hash_Map_Entry<ACE_TString, ACE_TString> -#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<ACE_TString, ACE_TString, ACE_Hash<ACE_TString>, ACE_Equal_To<ACE_TString>, ACE_SYNCH_RW_MUTEX> -#pragma instantiate ACE_Hash_Map_Iterator<ACE_TString, ACE_TString, ACE_SYNCH_RW_MUTEX> -#pragma instantiate ACE_Hash_Map_Iterator_Ex<ACE_TString, ACE_TString, ACE_Hash<ACE_TString>, ACE_Equal_To<ACE_TString>, ACE_SYNCH_RW_MUTEX> -#pragma instantiate ACE_Hash_Map_Reverse_Iterator<ACE_TString, ACE_TString, ACE_SYNCH_RW_MUTEX> -#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<ACE_TString, ACE_TString, ACE_Hash<ACE_TString>, ACE_Equal_To<ACE_TString>, ACE_SYNCH_RW_MUTEX> -#pragma instantiate ACE_Hash_Map_Manager<ACE_TString, ACE_TString, ACE_SYNCH_RW_MUTEX> -#pragma instantiate ACE_Hash_Map_Manager_Ex<ACE_TString, ACE_TString, ACE_Hash<ACE_TString>, ACE_Equal_To<ACE_TString>, ACE_SYNCH_RW_MUTEX> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/Misc/test_dump.cpp b/examples/Misc/test_dump.cpp index 1d908ba7505..bbffe66a2bf 100644 --- a/examples/Misc/test_dump.cpp +++ b/examples/Misc/test_dump.cpp @@ -31,13 +31,3 @@ ACE_TMAIN (int, ACE_TCHAR *[]) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Dumpable_Adapter<SOCK_Stream>; -template class ACE_Dumpable_Adapter<SOCK>; -template class ACE_Dumpable_Adapter<SOCK_Acceptor>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Dumpable_Adapter<SOCK_Stream> -#pragma instantiate ACE_Dumpable_Adapter<SOCK> -#pragma instantiate ACE_Dumpable_Adapter<SOCK_Acceptor> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - diff --git a/examples/Misc/test_set.cpp b/examples/Misc/test_set.cpp index b5c81d64bc8..4b60d3b4b11 100644 --- a/examples/Misc/test_set.cpp +++ b/examples/Misc/test_set.cpp @@ -55,10 +55,3 @@ ACE_TMAIN (int, ACE_TCHAR *[]) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Unbounded_Set<int>; -template class ACE_Unbounded_Set_Iterator<int>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Unbounded_Set<int> -#pragma instantiate ACE_Unbounded_Set_Iterator<int> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/NT_Service/main.cpp b/examples/NT_Service/main.cpp index e450fe2395e..fbbf4a60cf4 100644 --- a/examples/NT_Service/main.cpp +++ b/examples/NT_Service/main.cpp @@ -254,8 +254,3 @@ ACE_TMAIN (int argc, ACE_TCHAR* argv[]) return PROCESS::instance ()->run (argc, argv); } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Singleton<Process, ACE_Mutex>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Singleton<Process, ACE_Mutex> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/NT_Service/ntsvc.cpp b/examples/NT_Service/ntsvc.cpp index 8d16df53e0a..f21dec5dad7 100644 --- a/examples/NT_Service/ntsvc.cpp +++ b/examples/NT_Service/ntsvc.cpp @@ -27,11 +27,11 @@ Service::Service (void) reactor (ACE_Reactor::instance ()); } -Service::~Service (void) -{ - if (ACE_Reactor::instance ()->cancel_timer(this) == -1) +Service::~Service (void) +{ + if (ACE_Reactor::instance ()->cancel_timer(this) == -1) ACE_ERROR ((LM_ERROR, - "Service::~Service failed to cancel_timer.\n")); + "Service::~Service failed to cancel_timer.\n")); } // This method is called when the service gets a control request. It @@ -111,8 +111,3 @@ Service::svc (void) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Singleton<Service, ACE_Mutex>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Singleton<Service, ACE_Mutex> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/QOS/Change_Receiver_FlowSpec/Fill_ACE_QoS.cpp b/examples/QOS/Change_Receiver_FlowSpec/Fill_ACE_QoS.cpp index fbaed5667e6..20c03f40fa6 100644 --- a/examples/QOS/Change_Receiver_FlowSpec/Fill_ACE_QoS.cpp +++ b/examples/QOS/Change_Receiver_FlowSpec/Fill_ACE_QoS.cpp @@ -97,18 +97,3 @@ Fill_ACE_QoS::map (void) return this->flow_spec_map_; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Hash_Map_Manager<ACE_CString,ACE_Flow_Spec *,ACE_Null_Mutex>; -template class ACE_Hash_Map_Manager_Ex<ACE_CString, ACE_Flow_Spec *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Null_Mutex>; -template class ACE_Hash_Map_Iterator_Base_Ex<ACE_CString, ACE_Flow_Spec *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Null_Mutex>; -template class ACE_Hash_Map_Entry<ACE_CString, ACE_Flow_Spec *>; -template class ACE_Hash_Map_Manager_Ex<ACE_CString, ACE_Flow_Spec *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Thread_Mutex>; -template class ACE_Hash_Map_Iterator_Base_Ex<ACE_CString, ACE_Flow_Spec *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Thread_Mutex>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Hash_Map_Manager<ACE_CString,ACE_Flow_Spec *,ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Manager_Ex<ACE_CString, ACE_Flow_Spec *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<ACE_CString, ACE_Flow_Spec *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Entry<ACE_CString, ACE_Flow_Spec *> -#pragma instantiate ACE_Hash_Map_Manager_Ex<ACE_CString, ACE_Flow_Spec *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Thread_Mutex> -#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<ACE_CString, ACE_Flow_Spec *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Thread_Mutex> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/QOS/Change_Sender_TSpec/Fill_ACE_QoS.cpp b/examples/QOS/Change_Sender_TSpec/Fill_ACE_QoS.cpp index fbaed5667e6..20c03f40fa6 100644 --- a/examples/QOS/Change_Sender_TSpec/Fill_ACE_QoS.cpp +++ b/examples/QOS/Change_Sender_TSpec/Fill_ACE_QoS.cpp @@ -97,18 +97,3 @@ Fill_ACE_QoS::map (void) return this->flow_spec_map_; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Hash_Map_Manager<ACE_CString,ACE_Flow_Spec *,ACE_Null_Mutex>; -template class ACE_Hash_Map_Manager_Ex<ACE_CString, ACE_Flow_Spec *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Null_Mutex>; -template class ACE_Hash_Map_Iterator_Base_Ex<ACE_CString, ACE_Flow_Spec *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Null_Mutex>; -template class ACE_Hash_Map_Entry<ACE_CString, ACE_Flow_Spec *>; -template class ACE_Hash_Map_Manager_Ex<ACE_CString, ACE_Flow_Spec *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Thread_Mutex>; -template class ACE_Hash_Map_Iterator_Base_Ex<ACE_CString, ACE_Flow_Spec *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Thread_Mutex>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Hash_Map_Manager<ACE_CString,ACE_Flow_Spec *,ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Manager_Ex<ACE_CString, ACE_Flow_Spec *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<ACE_CString, ACE_Flow_Spec *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Entry<ACE_CString, ACE_Flow_Spec *> -#pragma instantiate ACE_Hash_Map_Manager_Ex<ACE_CString, ACE_Flow_Spec *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Thread_Mutex> -#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<ACE_CString, ACE_Flow_Spec *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Thread_Mutex> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/QOS/Simple/Fill_ACE_QoS.cpp b/examples/QOS/Simple/Fill_ACE_QoS.cpp index fbaed5667e6..20c03f40fa6 100644 --- a/examples/QOS/Simple/Fill_ACE_QoS.cpp +++ b/examples/QOS/Simple/Fill_ACE_QoS.cpp @@ -97,18 +97,3 @@ Fill_ACE_QoS::map (void) return this->flow_spec_map_; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Hash_Map_Manager<ACE_CString,ACE_Flow_Spec *,ACE_Null_Mutex>; -template class ACE_Hash_Map_Manager_Ex<ACE_CString, ACE_Flow_Spec *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Null_Mutex>; -template class ACE_Hash_Map_Iterator_Base_Ex<ACE_CString, ACE_Flow_Spec *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Null_Mutex>; -template class ACE_Hash_Map_Entry<ACE_CString, ACE_Flow_Spec *>; -template class ACE_Hash_Map_Manager_Ex<ACE_CString, ACE_Flow_Spec *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Thread_Mutex>; -template class ACE_Hash_Map_Iterator_Base_Ex<ACE_CString, ACE_Flow_Spec *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Thread_Mutex>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Hash_Map_Manager<ACE_CString,ACE_Flow_Spec *,ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Manager_Ex<ACE_CString, ACE_Flow_Spec *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<ACE_CString, ACE_Flow_Spec *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Entry<ACE_CString, ACE_Flow_Spec *> -#pragma instantiate ACE_Hash_Map_Manager_Ex<ACE_CString, ACE_Flow_Spec *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Thread_Mutex> -#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<ACE_CString, ACE_Flow_Spec *, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Thread_Mutex> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/Reactor/Misc/pingpong.cpp b/examples/Reactor/Misc/pingpong.cpp index 4689df8f730..f4a3bc0630e 100644 --- a/examples/Reactor/Misc/pingpong.cpp +++ b/examples/Reactor/Misc/pingpong.cpp @@ -48,12 +48,6 @@ # include "ace/Thread.h" #endif -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Test_and_Set<ACE_Null_Mutex, sig_atomic_t>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Test_and_Set<ACE_Null_Mutex, sig_atomic_t> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - ACE_RCSID(Misc, pingpong, "$Id$") class Ping_Pong : public ACE_Test_and_Set<ACE_Null_Mutex, sig_atomic_t> diff --git a/examples/Reactor/Misc/test_event_handler_t.cpp b/examples/Reactor/Misc/test_event_handler_t.cpp index 6a68bd9a9e3..4261859784e 100644 --- a/examples/Reactor/Misc/test_event_handler_t.cpp +++ b/examples/Reactor/Misc/test_event_handler_t.cpp @@ -38,15 +38,6 @@ ACE_TMAIN (int, ACE_TCHAR *[]) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \ - defined (ACE_HAS_GNU_REPO) - // The explicit instantiation is necessary with g++ 2.91.66 with - // -frepo, because it misses it. -template class ACE_Event_Handler_T<ACE_Test_Sig_Handler>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Event_Handler_T<ACE_Test_Sig_Handler> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - #else int ACE_TMAIN (int, ACE_TCHAR *[]) diff --git a/examples/Reactor/Misc/test_reactors.cpp b/examples/Reactor/Misc/test_reactors.cpp index 7af2c2709f8..a08580672e0 100644 --- a/examples/Reactor/Misc/test_reactors.cpp +++ b/examples/Reactor/Misc/test_reactors.cpp @@ -185,14 +185,6 @@ ACE_TMAIN (int, ACE_TCHAR *[]) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Atomic_Op<ACE_Thread_Mutex, int>; -template class ACE_Atomic_Op_Ex<ACE_Thread_Mutex, int>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Atomic_Op<ACE_Thread_Mutex, int> -#pragma instantiate ACE_Atomic_Op_Ex<ACE_Thread_Mutex, int> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - #else int main (int, char *[]) diff --git a/examples/Reactor/Proactor/post_completions.cpp b/examples/Reactor/Proactor/post_completions.cpp index 0f22540b9cf..e6545241953 100644 --- a/examples/Reactor/Proactor/post_completions.cpp +++ b/examples/Reactor/Proactor/post_completions.cpp @@ -292,16 +292,6 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) return status; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Task <ACE_NULL_SYNCH>; -template class ACE_Atomic_Op <ACE_Thread_Mutex, size_t>; -template class ACE_Atomic_Op_Ex <ACE_Thread_Mutex, size_t>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Task <ACE_NULL_SYNCH> -#pragma instantiate ACE_Atomic_Op <ACE_Thread_Mutex, size_t> -#pragma instantiate ACE_Atomic_Op_Ex <ACE_Thread_Mutex, size_t> -#endif /* ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA */ - #else /* ACE_WIN32 && !ACE_HAS_WINCE || ACE_HAS_AIO_CALLS && !ACE_POSIX_AIOCB_PROACTOR*/ int diff --git a/examples/Reactor/Proactor/test_cancel.cpp b/examples/Reactor/Proactor/test_cancel.cpp index 99b3b139bdb..c10f8e9be2c 100644 --- a/examples/Reactor/Proactor/test_cancel.cpp +++ b/examples/Reactor/Proactor/test_cancel.cpp @@ -233,12 +233,6 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Asynch_Acceptor<Receiver>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Asynch_Acceptor<Receiver> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - #else /* ACE_WIN32 && !ACE_HAS_WINCE || ACE_HAS_AIO_CALLS*/ int diff --git a/examples/Reactor/Proactor/test_end_event_loop.cpp b/examples/Reactor/Proactor/test_end_event_loop.cpp index 700ece27072..096f77b089d 100644 --- a/examples/Reactor/Proactor/test_end_event_loop.cpp +++ b/examples/Reactor/Proactor/test_end_event_loop.cpp @@ -154,12 +154,6 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv []) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Task <ACE_NULL_SYNCH>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Task <ACE_NULL_SYNCH> -#endif /* ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA */ - #else /* ACE_WIN32 && !ACE_HAS_WINCE || ACE_HAS_AIO_CALLS && !ACE_POSIX_AIOCB_PROACTOR*/ int diff --git a/examples/Reactor/Proactor/test_proactor.cpp b/examples/Reactor/Proactor/test_proactor.cpp index 9acae3255cb..53a9fb7b474 100644 --- a/examples/Reactor/Proactor/test_proactor.cpp +++ b/examples/Reactor/Proactor/test_proactor.cpp @@ -666,12 +666,6 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Asynch_Acceptor<Receiver>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Asynch_Acceptor<Receiver> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - #else /* ACE_WIN32 && !ACE_HAS_WINCE || ACE_HAS_AIO_CALLS*/ int diff --git a/examples/Reactor/Proactor/test_proactor2.cpp b/examples/Reactor/Proactor/test_proactor2.cpp index c83ea0c0849..cd5cbf7092e 100644 --- a/examples/Reactor/Proactor/test_proactor2.cpp +++ b/examples/Reactor/Proactor/test_proactor2.cpp @@ -805,11 +805,4 @@ int PrintSigMask () return 0; } - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Asynch_Acceptor<Receiver>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Asynch_Acceptor<Receiver> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - #endif /* ACE_WIN32 && !ACE_HAS_WINCE || ACE_HAS_AIO_CALLS*/ diff --git a/examples/Reactor/Proactor/test_proactor3.cpp b/examples/Reactor/Proactor/test_proactor3.cpp index 0386fad19b4..c47468276c8 100644 --- a/examples/Reactor/Proactor/test_proactor3.cpp +++ b/examples/Reactor/Proactor/test_proactor3.cpp @@ -861,10 +861,4 @@ print_sigmask (void) } #endif /* 0 */ -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Asynch_Acceptor<Receiver>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Asynch_Acceptor<Receiver> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - #endif /* ACE_WIN32 && !ACE_HAS_WINCE || ACE_HAS_AIO_CALLS*/ diff --git a/examples/Reactor/Proactor/test_timeout.cpp b/examples/Reactor/Proactor/test_timeout.cpp index 553a0610389..39351717db9 100644 --- a/examples/Reactor/Proactor/test_timeout.cpp +++ b/examples/Reactor/Proactor/test_timeout.cpp @@ -116,14 +116,6 @@ ACE_TMAIN (int, ACE_TCHAR *[]) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Atomic_Op<ACE_SYNCH_MUTEX, int>; -template class ACE_Atomic_Op_Ex<ACE_SYNCH_MUTEX, int>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Atomic_Op<ACE_SYNCH_MUTEX, int> -#pragma instantiate ACE_Atomic_Op_Ex<ACE_SYNCH_MUTEX, int> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - #else /* ACE_WIN32 && !ACE_HAS_WINCE || ACE_HAS_AIO_CALLS && !ACE_POSIX_AIOCB_PROACTOR*/ int diff --git a/examples/Shared_Malloc/Malloc.cpp b/examples/Shared_Malloc/Malloc.cpp index 66628fb3ef6..4499d9fa11b 100644 --- a/examples/Shared_Malloc/Malloc.cpp +++ b/examples/Shared_Malloc/Malloc.cpp @@ -67,65 +67,3 @@ Malloc::instance (void) return Malloc::instance_; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Allocator_Adapter<M_ALLOCATOR>; -#if !defined (ACE_LACKS_SBRK) -template class ACE_Allocator_Adapter<SB_ALLOCATOR>; -template class ACE_Malloc <ACE_SBRK_MEMORY_POOL, ACE_SYNCH_MUTEX>; -template class ACE_Malloc_T <ACE_SBRK_MEMORY_POOL, ACE_SYNCH_MUTEX, ACE_Control_Block>; -#endif /* ! ACE_LACKS_SBRK */ -#if !defined (ACE_LACKS_SYSV_SHMEM) -template class ACE_Allocator_Adapter<SP_ALLOCATOR>; -template class ACE_Allocator_Adapter<ST_ALLOCATOR>; -#endif /* ! ACE_LACKS_SYSV_SHMEM */ - -template class ACE_Malloc <ACE_MMAP_MEMORY_POOL, ACE_Process_Mutex>; -template class ACE_Malloc_T <ACE_MMAP_MEMORY_POOL, ACE_Process_Mutex, ACE_Control_Block>; -#if !defined (ACE_HAS_THREADS) && !defined(ACE_HAS_STD_TEMPLATE_SPECIALIZATION) -template class ACE_Read_Guard<ACE_SYNCH_MUTEX>; -template class ACE_Write_Guard<ACE_SYNCH_MUTEX>; -#endif /* ! ACE_HAS_THREADS && ! ACE_HAS_STD_TEMPLATE_SPECIALIZATION */ - -#if defined (ACE_LACKS_SYSV_SHMEM) - -#else -template class ACE_Malloc <ACE_SHARED_MEMORY_POOL, ACE_Process_Mutex>; -template class ACE_Malloc <ACE_SHARED_MEMORY_POOL, ACE_SYNCH_MUTEX>; -template class ACE_Malloc_T <ACE_SHARED_MEMORY_POOL, ACE_Process_Mutex, ACE_Control_Block>; -template class ACE_Malloc_T <ACE_SHARED_MEMORY_POOL, ACE_SYNCH_MUTEX, ACE_Control_Block>; -#endif /* ACE_LACKS_SYSV_SHMEM */ - -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Allocator_Adapter<L_ALLOCATOR> -#pragma instantiate ACE_Allocator_Adapter<M_ALLOCATOR> -#if !defined (ACE_LACKS_SBRK) -#pragma instantiate ACE_Allocator_Adapter<SB_ALLOCATOR> -#pragma instantiate ACE_Malloc <ACE_SBRK_MEMORY_POOL, ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Malloc_T <ACE_SBRK_MEMORY_POOL, ACE_SYNCH_MUTEX, ACE_Control_Block> -#endif /* ! ACE_LACKS_SYSV_SHMEM */ -#if !defined (ACE_LACKS_SBRK) -#pragma instantiate ACE_Allocator_Adapter<SP_ALLOCATOR> -#endif /* ! ACE_LACKS_SYSV_SHMEM */ -#pragma instantiate ACE_Allocator_Adapter<ST_ALLOCATOR> -#pragma instantiate ACE_Malloc <ACE_LOCAL_MEMORY_POOL, ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Malloc <ACE_MMAP_MEMORY_POOL, ACE_Process_Mutex> -#pragma instantiate ACE_Malloc_T <ACE_LOCAL_MEMORY_POOL, ACE_SYNCH_MUTEX, ACE_Control_Block> -#pragma instantiate ACE_Malloc_T <ACE_MMAP_MEMORY_POOL, ACE_Process_Mutex, ACE_Control_Block> -#pragma instantiate ACE_Read_Guard<ACE_Process_Mutex> -#pragma instantiate ACE_Write_Guard<ACE_Process_Mutex> -#if !defined (ACE_HAS_THREADS) -#pragma instantiate ACE_Read_Guard<ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Write_Guard<ACE_SYNCH_MUTEX> -#endif /* ! ACE_HAS_THREADS */ - -#if defined (ACE_LACKS_SYSV_SHMEM) -#pragma instantiate ACE_Malloc <ACE_MMAP_MEMORY_POOL, ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Malloc_T <ACE_MMAP_MEMORY_POOL, ACE_SYNCH_MUTEX, ACE_Control_Block> -#else -#pragma instantiate ACE_Malloc <ACE_SHARED_MEMORY_POOL, ACE_Process_Mutex> -#pragma instantiate ACE_Malloc <ACE_SHARED_MEMORY_POOL, ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Malloc_T <ACE_SHARED_MEMORY_POOL, ACE_Process_Mutex, ACE_Control_Block> -#pragma instantiate ACE_Malloc_T <ACE_SHARED_MEMORY_POOL, ACE_SYNCH_MUTEX, ACE_Control_Block> -#endif /* ACE_LACKS_SYSV_SHMEM */ - -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/Shared_Malloc/test_multiple_mallocs.cpp b/examples/Shared_Malloc/test_multiple_mallocs.cpp index 3f35daa9d26..1638a762060 100644 --- a/examples/Shared_Malloc/test_multiple_mallocs.cpp +++ b/examples/Shared_Malloc/test_multiple_mallocs.cpp @@ -123,14 +123,3 @@ ACE_TMAIN (int, ACE_TCHAR *[]) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class auto_ptr <ACE_Allocator_Adapter<TEST_MALLOC> >; -template class ACE_Auto_Basic_Ptr<ACE_Allocator_Adapter<TEST_MALLOC> >; -template class auto_ptr <TEST_MALLOC>; -template class ACE_Auto_Basic_Ptr<TEST_MALLOC>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate auto_ptr <ACE_Allocator_Adapter<TEST_MALLOC> > -#pragma instantiate ACE_Auto_Basic_Ptr<ACE_Allocator_Adapter<TEST_MALLOC> > -#pragma instantiate auto_ptr <TEST_MALLOC> -#pragma instantiate ACE_Auto_Basic_Ptr<TEST_MALLOC> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/Shared_Malloc/test_persistence.cpp b/examples/Shared_Malloc/test_persistence.cpp index a981cfd6a4f..8c3df750853 100644 --- a/examples/Shared_Malloc/test_persistence.cpp +++ b/examples/Shared_Malloc/test_persistence.cpp @@ -348,18 +348,3 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -// The following instantiation is in ace/System_Time.cpp: -// template class ACE_Malloc <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex>; -template class ACE_Malloc_FIFO_Iterator <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex>; -template class ACE_Malloc_LIFO_Iterator <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex>; -template class ACE_Malloc_FIFO_Iterator_T <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex, ACE_Control_Block>; -template class ACE_Malloc_LIFO_Iterator_T <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex, ACE_Control_Block>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -// The following instantiation is in ace/System_Time.cpp: -// #pragma instantiate ACE_Malloc <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex> -#pragma instantiate ACE_Malloc_FIFO_Iterator <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex> -#pragma instantiate ACE_Malloc_LIFO_Iterator <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex> -#pragma instantiate ACE_Malloc_FIFO_Iterator_T <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex, ACE_Control_Block> -#pragma instantiate ACE_Malloc_LIFO_Iterator_T <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex, ACE_Control_Block> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/Shared_Malloc/test_position_independent_malloc.cpp b/examples/Shared_Malloc/test_position_independent_malloc.cpp index cb5c0acd4c8..b4c66e54957 100644 --- a/examples/Shared_Malloc/test_position_independent_malloc.cpp +++ b/examples/Shared_Malloc/test_position_independent_malloc.cpp @@ -188,26 +188,3 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Based_Pointer<Test_Data>; -template class ACE_Based_Pointer_Basic<Test_Data>; -template class ACE_Based_Pointer_Basic<long>; -template class ACE_Based_Pointer_Basic<Long_Test>; -template class ACE_Based_Pointer<Long_Test>; -template class auto_ptr <TEST_MALLOC>; -template class ACE_Auto_Basic_Ptr<TEST_MALLOC>; -#if (ACE_HAS_POSITION_INDEPENDENT_POINTERS == 1) - -#endif /* ACE_HAS_POSITION_INDEPENDENT_POINTERS == 1 */ -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Based_Pointer<Test_Data> -#pragma instantiate ACE_Based_Pointer_Basic<Test_Data> -#pragma instantiate ACE_Based_Pointer_Basic<long> -#pragma instantiate ACE_Based_Pointer_Basic<Long_Test> -#pragma instantiate ACE_Based_Pointer_Basic<Long> -#pragma instantiate auto_ptr <TEST_MALLOC> -#pragma instantiate ACE_Auto_Basic_Ptr<TEST_MALLOC> -#if (ACE_HAS_POSITION_INDEPENDENT_POINTERS == 1) - -#endif /* ACE_HAS_POSITION_INDEPENDENT_POINTERS == 1 */ -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/Smart_Pointers/gadget_test.cpp b/examples/Smart_Pointers/gadget_test.cpp index 74df2248dc3..94c17b2a556 100644 --- a/examples/Smart_Pointers/gadget_test.cpp +++ b/examples/Smart_Pointers/gadget_test.cpp @@ -49,23 +49,4 @@ int ACE_TMAIN (int argc, ACE_TCHAR *argv[]) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Bound_Ptr_Counter<ACE_SYNCH_MUTEX>; -template class ACE_Strong_Bound_Ptr<Gadget, ACE_SYNCH_MUTEX>; -template class ACE_Weak_Bound_Ptr<Gadget, ACE_SYNCH_MUTEX>; -template class ACE_Strong_Bound_Ptr<Gadget_Part, ACE_SYNCH_MUTEX>; -template class ACE_Weak_Bound_Ptr<Gadget_Part, ACE_SYNCH_MUTEX>; -template class ACE_Node<Gadget_Part_var>; -template class ACE_Unbounded_Queue<Gadget_Part_var>; -template class ACE_Unbounded_Queue_Iterator<Gadget_Part_var>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Bound_Ptr_Counter<ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Strong_Bound_Ptr<Gadget, ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Weak_Bound_Ptr<Gadget, ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Strong_Bound_Ptr<Gadget_Part, ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Weak_Bound_Ptr<Gadget_Part, ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Node<Gadget_Part_var> -#pragma instantiate ACE_Unbounded_Queue<Gadget_Part_var> -#pragma instantiate ACE_Unbounded_Queue_Iterator<Gadget_Part_var> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/Smart_Pointers/widget_test.cpp b/examples/Smart_Pointers/widget_test.cpp index 978b33d5bec..4fc8b5824a2 100644 --- a/examples/Smart_Pointers/widget_test.cpp +++ b/examples/Smart_Pointers/widget_test.cpp @@ -49,30 +49,3 @@ int ACE_TMAIN (int argc, ACE_TCHAR *argv[]) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Auto_Basic_Ptr<Widget>; -template class auto_ptr<Widget>; -template class ACE_Auto_Basic_Ptr<Widget_Part>; -template class auto_ptr<Widget_Part>; -template class ACE_Refcounted_Auto_Ptr<Widget_Part, ACE_SYNCH_MUTEX>; -template class ACE_Node<ACE_Refcounted_Auto_Ptr<Widget_Part, ACE_SYNCH_MUTEX> >; -template class ACE_Unbounded_Queue<ACE_Refcounted_Auto_Ptr<Widget_Part, ACE_SYNCH_MUTEX> >; -template class ACE_Unbounded_Queue_Iterator<ACE_Refcounted_Auto_Ptr<Widget_Part, ACE_SYNCH_MUTEX> >; -template class ACE_Refcounted_Auto_Ptr<Widget_Part, ACE_Null_Mutex>; -template class ACE_Node<ACE_Refcounted_Auto_Ptr<Widget_Part, ACE_Null_Mutex> >; -template class ACE_Unbounded_Queue<ACE_Refcounted_Auto_Ptr<Widget_Part, ACE_Null_Mutex> >; -template class ACE_Unbounded_Queue_Iterator<ACE_Refcounted_Auto_Ptr<Widget_Part, ACE_Null_Mutex> >; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Auto_Basic_Ptr<Widget> -#pragma instantiate auto_ptr<Widget> -#pragma instantiate ACE_Auto_Basic_Ptr<Widget_Part> -#pragma instantiate auto_ptr<Widget_Part> -#pragma instantiate ACE_Refcounted_Auto_Ptr<Widget_Part, ACE_SYNCH_MUTEX> -#pragma instantiate ACE_Node<ACE_Refcounted_Auto_Ptr<Widget_Part, ACE_SYNCH_MUTEX> > -#pragma instantiate ACE_Unbounded_Queue<ACE_Refcounted_Auto_Ptr<Widget_Part, ACE_SYNCH_MUTEX> > -#pragma instantiate ACE_Unbounded_Queue_Iterator<ACE_Refcounted_Auto_Ptr<Widget_Part, ACE_SYNCH_MUTEX> > -#pragma instantiate ACE_Refcounted_Auto_Ptr<Widget_Part, ACE_Null_Mutex> -#pragma instantiate ACE_Node<ACE_Refcounted_Auto_Ptr<Widget_Part, ACE_Null_Mutex> > -#pragma instantiate ACE_Unbounded_Queue<ACE_Refcounted_Auto_Ptr<Widget_Part, ACE_Null_Mutex> > -#pragma instantiate ACE_Unbounded_Queue_Iterator<ACE_Refcounted_Auto_Ptr<Widget_Part, ACE_Null_Mutex> > -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/System_V_IPC/SV_Message_Queues/TMQ_Client.cpp b/examples/System_V_IPC/SV_Message_Queues/TMQ_Client.cpp index 055f93223c3..d48939845d5 100644 --- a/examples/System_V_IPC/SV_Message_Queues/TMQ_Client.cpp +++ b/examples/System_V_IPC/SV_Message_Queues/TMQ_Client.cpp @@ -50,11 +50,3 @@ ACE_TMAIN (int, ACE_TCHAR *[]) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Typed_SV_Message_Queue<Message_Data>; -template class ACE_Typed_SV_Message<Message_Data>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Typed_SV_Message_Queue<Message_Data> -#pragma instantiate ACE_Typed_SV_Message<Message_Data> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - diff --git a/examples/System_V_IPC/SV_Message_Queues/TMQ_Server.cpp b/examples/System_V_IPC/SV_Message_Queues/TMQ_Server.cpp index bb4377e02c6..02c41602b9f 100644 --- a/examples/System_V_IPC/SV_Message_Queues/TMQ_Server.cpp +++ b/examples/System_V_IPC/SV_Message_Queues/TMQ_Server.cpp @@ -65,14 +65,6 @@ main (int, char *[]) ACE_NOTREACHED (return 0;) } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Typed_SV_Message_Queue<Message_Data>; -template class ACE_Typed_SV_Message<Message_Data>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Typed_SV_Message_Queue<Message_Data> -#pragma instantiate ACE_Typed_SV_Message<Message_Data> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - #else int ACE_TMAIN (int, ACE_TCHAR *[]) diff --git a/examples/System_V_IPC/SV_Semaphores/Semaphores_1.cpp b/examples/System_V_IPC/SV_Semaphores/Semaphores_1.cpp index 99a5284dfd6..2331ea772ec 100644 --- a/examples/System_V_IPC/SV_Semaphores/Semaphores_1.cpp +++ b/examples/System_V_IPC/SV_Semaphores/Semaphores_1.cpp @@ -92,22 +92,3 @@ int ACE_TMAIN (int, ACE_TCHAR *[]) } #endif /* ACE_HAS_SYSV_IPC */ -#if defined (ACE_HAS_SYSV_IPC) && !defined(ACE_LACKS_SYSV_SHMEM) - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Guard<ACE_SV_Semaphore_Simple>; -template class ACE_Malloc<ACE_SHARED_MEMORY_POOL, ACE_SV_Semaphore_Simple>; -template class ACE_Malloc_T<ACE_SHARED_MEMORY_POOL, ACE_SV_Semaphore_Simple, ACE_Control_Block>; -template class ACE_Malloc_Lock_Adapter_T<ACE_SV_Semaphore_Simple>; -template class ACE_Read_Guard<ACE_SV_Semaphore_Simple>; -template class ACE_Write_Guard<ACE_SV_Semaphore_Simple>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Guard<ACE_SV_Semaphore_Simple> -#pragma instantiate ACE_Malloc<ACE_SHARED_MEMORY_POOL, ACE_SV_Semaphore_Simple> -#pragma instantiate ACE_Malloc_T<ACE_SHARED_MEMORY_POOL, ACE_SV_Semaphore_Simple, ACE_Control_Block> -#pragma instantiate ACE_Malloc_Lock_Adapter_T<ACE_SV_Semaphore_Simple> -#pragma instantiate ACE_Read_Guard<ACE_SV_Semaphore_Simple> -#pragma instantiate ACE_Write_Guard<ACE_SV_Semaphore_Simple> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - -#endif /* ACE_HAS_SYSV_IPC */ diff --git a/examples/System_V_IPC/SV_Semaphores/Semaphores_2.cpp b/examples/System_V_IPC/SV_Semaphores/Semaphores_2.cpp index 2150e9c0a13..e0ae9cd2bb5 100644 --- a/examples/System_V_IPC/SV_Semaphores/Semaphores_2.cpp +++ b/examples/System_V_IPC/SV_Semaphores/Semaphores_2.cpp @@ -108,22 +108,3 @@ int ACE_TMAIN (int, ACE_TCHAR *[]) } #endif /* ACE_HAS_SYSV_IPC */ -#if defined (ACE_HAS_SYSV_IPC) && !defined(ACE_LACKS_SYSV_SHMEM) - -# if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Guard<ACE_SV_Semaphore_Simple>; -template class ACE_Malloc<ACE_SHARED_MEMORY_POOL, ACE_SV_Semaphore_Simple>; -template class ACE_Malloc_T<ACE_SHARED_MEMORY_POOL, ACE_SV_Semaphore_Simple, ACE_Control_Block>; -template class ACE_Malloc_Lock_Adapter_T<ACE_SV_Semaphore_Simple>; -template class ACE_Read_Guard<ACE_SV_Semaphore_Simple>; -template class ACE_Write_Guard<ACE_SV_Semaphore_Simple>; -# elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Guard<ACE_SV_Semaphore_Simple> -#pragma instantiate ACE_Malloc<ACE_SHARED_MEMORY_POOL, ACE_SV_Semaphore_Simple> -#pragma instantiate ACE_Malloc_T<ACE_SHARED_MEMORY_POOL, ACE_SV_Semaphore_Simple, ACE_Control_Block> -#pragma instantiate ACE_Malloc_Lock_Adapter_T<ACE_SV_Semaphore_Simple> -#pragma instantiate ACE_Read_Guard<ACE_SV_Semaphore_Simple> -#pragma instantiate ACE_Write_Guard<ACE_SV_Semaphore_Simple> -# endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - -#endif /* ACE_HAS_SYSV_IPC */ diff --git a/examples/Threads/auto_event.cpp b/examples/Threads/auto_event.cpp index 29e923180e6..e568ffe84d1 100644 --- a/examples/Threads/auto_event.cpp +++ b/examples/Threads/auto_event.cpp @@ -104,14 +104,10 @@ ACE_TMAIN (int argc, ACE_TCHAR **argv) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Singleton<ACE_Auto_Event, ACE_Thread_Mutex>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Singleton<ACE_Auto_Event, ACE_Thread_Mutex> -#elif defined (ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION) +#if defined (ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION) template ACE_Singleton<ACE_Auto_Event, ACE_Thread_Mutex> * ACE_Singleton<ACE_Auto_Event, ACE_Thread_Mutex>::singleton_; -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ +#endif /* ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION */ #else diff --git a/examples/Threads/barrier2.cpp b/examples/Threads/barrier2.cpp index 694f20e45f8..cd322b82856 100644 --- a/examples/Threads/barrier2.cpp +++ b/examples/Threads/barrier2.cpp @@ -306,11 +306,6 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class Worker_Task<ACE_Null_Barrier>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate Worker_Task<ACE_Null_Barrier> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ #else int ACE_TMAIN (int, ACE_TCHAR *[]) diff --git a/examples/Threads/future1.cpp b/examples/Threads/future1.cpp index 187c5c94cf1..7b95e549431 100644 --- a/examples/Threads/future1.cpp +++ b/examples/Threads/future1.cpp @@ -394,39 +394,6 @@ ACE_TMAIN (int, ACE_TCHAR *[]) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Atomic_Op_Ex<ACE_Thread_Mutex, int>; -template class ACE_Atomic_Op<ACE_Thread_Mutex, int>; -template class ACE_Future<const char *>; -template class ACE_Future<u_long>; -template class ACE_Future_Rep<const char *>; -template class ACE_Future_Rep<u_long>; -template class auto_ptr<ACE_Method_Request>; -template class ACE_Auto_Basic_Ptr<ACE_Method_Request>; -template class ACE_Node<ACE_Future_Observer<const char *> *>; -template class ACE_Node<ACE_Future_Observer<u_long> *>; -template class ACE_Unbounded_Set<ACE_Future_Observer<const char *> *>; -template class ACE_Unbounded_Set<ACE_Future_Observer<u_long> *>; -template class ACE_Unbounded_Set_Iterator<ACE_Future_Observer<const char *> *>; -template class ACE_Unbounded_Set_Iterator<ACE_Future_Observer<u_long> *>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Atomic_Op_Ex<ACE_Thread_Mutex, int> -#pragma instantiate ACE_Atomic_Op<ACE_Thread_Mutex, int> -#pragma instantiate ACE_Atomic_Op_Ex<ACE_Thread_Mutex, int> -#pragma instantiate ACE_Future<const char *> -#pragma instantiate ACE_Future<u_long> -#pragma instantiate ACE_Future_Rep<const char *> -#pragma instantiate ACE_Future_Rep<u_long> -#pragma instantiate auto_ptr<ACE_Method_Request> -#pragma instantiate ACE_Auto_Basic_Ptr<ACE_Method_Request> -#pragma instantiate ACE_Node<ACE_Future_Observer<const char *> *> -#pragma instantiate ACE_Node<ACE_Future_Observer<u_long> *> -#pragma instantiate ACE_Unbounded_Set<ACE_Future_Observer<const char *> *> -#pragma instantiate ACE_Unbounded_Set<ACE_Future_Observer<u_long> *> -#pragma instantiate ACE_Unbounded_Set_Iterator<ACE_Future_Observer<const char *> *> -#pragma instantiate ACE_Unbounded_Set_Iterator<ACE_Future_Observer<u_long> *> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - #else int ACE_TMAIN (int, ACE_TCHAR *[]) diff --git a/examples/Threads/future2.cpp b/examples/Threads/future2.cpp index 4e14e03f177..4bb9519ca28 100644 --- a/examples/Threads/future2.cpp +++ b/examples/Threads/future2.cpp @@ -515,39 +515,6 @@ ACE_TMAIN (int, ACE_TCHAR *[]) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Atomic_Op_Ex<ACE_Thread_Mutex, int>; -template class ACE_Atomic_Op<ACE_Thread_Mutex, int>; -template class ACE_Future<char *>; -template class ACE_Future<u_long>; -template class ACE_Future_Rep<char *>; -template class ACE_Future_Rep<u_long>; -template class auto_ptr<ACE_Method_Request>; -template class ACE_Auto_Basic_Ptr<ACE_Method_Request>; -template class ACE_Node<ACE_Future_Observer<char *> *>; -template class ACE_Node<ACE_Future_Observer<u_long> *>; -template class ACE_Unbounded_Set<ACE_Future_Observer<char *> *>; -template class ACE_Unbounded_Set<ACE_Future_Observer<u_long> *>; -template class ACE_Unbounded_Set_Iterator<ACE_Future_Observer<char *> *>; -template class ACE_Unbounded_Set_Iterator<ACE_Future_Observer<u_long> *>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Atomic_Op_Ex<ACE_Thread_Mutex, int> -#pragma instantiate ACE_Atomic_Op<ACE_Thread_Mutex, int> -#pragma instantiate ACE_Atomic_Op_Ex<ACE_Thread_Mutex, int> -#pragma instantiate ACE_Future<char *> -#pragma instantiate ACE_Future<u_long> -#pragma instantiate ACE_Future_Rep<char *> -#pragma instantiate ACE_Future_Rep<u_long> -#pragma instantiate auto_ptr<ACE_Method_Request> -#pragma instantiate ACE_Auto_Basic_Ptr<ACE_Method_Request> -#pragma instantiate ACE_Node<ACE_Future_Observer<char *> *> -#pragma instantiate ACE_Node<ACE_Future_Observer<u_long> *> -#pragma instantiate ACE_Unbounded_Set<ACE_Future_Observer<char *> *> -#pragma instantiate ACE_Unbounded_Set<ACE_Future_Observer<u_long> *> -#pragma instantiate ACE_Unbounded_Set_Iterator<ACE_Future_Observer<char *> *> -#pragma instantiate ACE_Unbounded_Set_Iterator<ACE_Future_Observer<u_long> *> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - #else int ACE_TMAIN (int, ACE_TCHAR *[]) diff --git a/examples/Threads/manual_event.cpp b/examples/Threads/manual_event.cpp index c6eebe9727a..c168c384191 100644 --- a/examples/Threads/manual_event.cpp +++ b/examples/Threads/manual_event.cpp @@ -104,14 +104,6 @@ ACE_TMAIN (int argc, ACE_TCHAR **argv) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Atomic_Op_Ex<ACE_Thread_Mutex, int>; -template class ACE_Atomic_Op<ACE_Thread_Mutex, int>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Atomic_Op_Ex<ACE_Thread_Mutex, int> -#pragma instantiate ACE_Atomic_Op<ACE_Thread_Mutex, int> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - #else int ACE_TMAIN (int, ACE_TCHAR *[]) diff --git a/examples/Threads/reader_writer.cpp b/examples/Threads/reader_writer.cpp index 88b7ca10a27..5344ba4d5b4 100644 --- a/examples/Threads/reader_writer.cpp +++ b/examples/Threads/reader_writer.cpp @@ -178,20 +178,6 @@ int ACE_TMAIN (int argc, ACE_TCHAR *argv[]) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Atomic_Op_Ex<ACE_Thread_Mutex, int>; -template class ACE_Atomic_Op<ACE_Thread_Mutex, int>; -template class ACE_Guard<ACE_RW_Mutex>; -template class ACE_Read_Guard<ACE_RW_Mutex>; -template class ACE_Write_Guard<ACE_RW_Mutex>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Atomic_Op_Ex<ACE_Thread_Mutex, int> -#pragma instantiate ACE_Atomic_Op<ACE_Thread_Mutex, int> -#pragma instantiate ACE_Guard<ACE_RW_Mutex> -#pragma instantiate ACE_Read_Guard<ACE_RW_Mutex> -#pragma instantiate ACE_Write_Guard<ACE_RW_Mutex> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - #else int ACE_TMAIN (int, ACE_TCHAR *[]) diff --git a/examples/Threads/task_two.cpp b/examples/Threads/task_two.cpp index 56c19769b69..7243ac5b1c3 100644 --- a/examples/Threads/task_two.cpp +++ b/examples/Threads/task_two.cpp @@ -137,15 +137,6 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Atomic_Op_Ex<ACE_Thread_Mutex, int>; -template class ACE_Atomic_Op<ACE_Thread_Mutex, int>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Atomic_Op_Ex<ACE_Thread_Mutex, int> -#pragma instantiate ACE_Atomic_Op<ACE_Thread_Mutex, int> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - - #else int ACE_TMAIN (int, ACE_TCHAR *[]) diff --git a/examples/Threads/thread_specific.cpp b/examples/Threads/thread_specific.cpp index 5fdd9a5471c..04cb3d94627 100644 --- a/examples/Threads/thread_specific.cpp +++ b/examples/Threads/thread_specific.cpp @@ -217,13 +217,6 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_TSS<Errno>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_TSS<Errno> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - - #else int ACE_TMAIN (int, ACE_TCHAR *[]) diff --git a/examples/Threads/tss1.cpp b/examples/Threads/tss1.cpp index 7b0a525039d..783d4dc5b7a 100644 --- a/examples/Threads/tss1.cpp +++ b/examples/Threads/tss1.cpp @@ -108,14 +108,6 @@ int Tester<ACE_SYNCH_USE>::close (u_long) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_TSS<Errno>; -template class Tester<ACE_MT_SYNCH>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_TSS<Errno> -#pragma instantiate Tester<ACE_MT_SYNCH> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - int ACE_TMAIN (int, ACE_TCHAR *[]) { diff --git a/examples/Threads/tss2.cpp b/examples/Threads/tss2.cpp index 7df77f1f536..0c7fb9ac3ee 100644 --- a/examples/Threads/tss2.cpp +++ b/examples/Threads/tss2.cpp @@ -174,31 +174,10 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Atomic_Op_Ex<ACE_Thread_Mutex, int>; -template class ACE_Atomic_Op<ACE_Thread_Mutex, int>; -template class ACE_Atomic_Op_Ex<ACE_Token, int>; -template class ACE_Atomic_Op<ACE_Token, int>; -template class ACE_Guard<ACE_Token>; -template class ACE_TSS<TSS_Data>; -template class ACE_TSS<TSS_Obj>; -template class ACE_TSS_Singleton<TSS_Data, ACE_SYNCH_MUTEX>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Atomic_Op_Ex<ACE_Thread_Mutex, int> -#pragma instantiate ACE_Atomic_Op<ACE_Thread_Mutex, int> -#pragma instantiate ACE_Atomic_Op_Ex<ACE_Token, int> -#pragma instantiate ACE_Atomic_Op_Ex<ACE_Thread_Mutex, int> -#pragma instantiate ACE_Atomic_Op<ACE_Token, int> -#pragma instantiate ACE_Atomic_Op_Ex<ACE_Token, int> -#pragma instantiate ACE_Guard<ACE_Token> -#pragma instantiate ACE_TSS<TSS_Data> -#pragma instantiate ACE_TSS<TSS_Obj> -#pragma instantiate ACE_TSS_Singleton<TSS_Data, ACE_SYNCH_MUTEX> -#elif defined (ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION) +#if defined (ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION) template ACE_TSS_Singleton<TSS_Data, ACE_SYNCH_MUTEX> * ACE_TSS_Singleton<TSS_Data, ACE_SYNCH_MUTEX>::singleton_; -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - +#endif /* ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION */ #else diff --git a/examples/Timer_Queue/Async_Timer_Queue_Test.cpp b/examples/Timer_Queue/Async_Timer_Queue_Test.cpp index 49d7973676a..18d12b8017a 100644 --- a/examples/Timer_Queue/Async_Timer_Queue_Test.cpp +++ b/examples/Timer_Queue/Async_Timer_Queue_Test.cpp @@ -25,16 +25,6 @@ #include "Async_Timer_Queue_Test.h" -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Async_Timer_Queue_Adapter<ACE_Timer_Heap>; -template class Command<Async_Timer_Queue, Async_Timer_Queue::ACTION>; -template class Timer_Queue_Test_Driver<Async_Timer_Queue *, Async_Timer_Queue, Async_Timer_Queue::ACTION>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Async_Timer_Queue_Adapter<ACE_Timer_Heap> -#pragma instantiate Command<Async_Timer_Queue, Async_Timer_Queue::ACTION> -#pragma instantiate Timer_Queue_Test_Driver<Async_Timer_Queue *, Async_Timer_Queue, Async_Timer_Queue::ACTION> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - ACE_RCSID(Timer_Queue, Async_Timer_Queue_Test, "$Id$") // Hook method that is called to handle the expiration of a timer. diff --git a/examples/Timer_Queue/Reactor_Timer_Queue_Test.cpp b/examples/Timer_Queue/Reactor_Timer_Queue_Test.cpp index d48694dc72b..c3526e8daf9 100644 --- a/examples/Timer_Queue/Reactor_Timer_Queue_Test.cpp +++ b/examples/Timer_Queue/Reactor_Timer_Queue_Test.cpp @@ -25,14 +25,6 @@ #include "Driver.h" #include "Reactor_Timer_Queue_Test.h" -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class Timer_Queue_Test_Driver <ACE_Timer_Heap, Input_Handler, Input_Handler::ACTION>; -template class Command<Input_Handler, Input_Handler::ACTION>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate Timer_Queue_Test_Driver <ACE_Timer_Heap, Input_Handler, Input_Handler::ACTION> -#pragma instantiate Command<Input_Handler, Input_Handler::ACTION> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - ACE_RCSID(Timer_Queue, Reactor_Timer_Queue_Test, "$Id$") void diff --git a/examples/Timer_Queue/Thread_Timer_Queue_Test.cpp b/examples/Timer_Queue/Thread_Timer_Queue_Test.cpp index ceafaef5fe9..d9cf88ff5ee 100644 --- a/examples/Timer_Queue/Thread_Timer_Queue_Test.cpp +++ b/examples/Timer_Queue/Thread_Timer_Queue_Test.cpp @@ -29,43 +29,6 @@ #include "ace/Condition_T.h" #include "ace/Thread_Mutex.h" -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Thread_Timer_Queue_Adapter<Timer_Heap>; -template class Timer_Queue_Test_Driver<Thread_Timer_Queue, - Input_Task, - Input_Task::ACTION>; -template class Command<Input_Task, Input_Task::ACTION>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Thread_Timer_Queue_Adapter<Timer_Heap> -#pragma instantiate Timer_Queue_Test_Driver<Thread_Timer_Queue, \ - Input_Task, \ - Input_Task::ACTION> -#pragma instantiate Command<Input_Task, Input_Task::ACTION> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - -#if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0) -// These templates will specialized in libACE.* if the platforms does -// not define ACE_MT_SAFE. - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Thread_Condition<ACE_Thread_Mutex>; -template class ACE_Condition<ACE_Thread_Mutex>; -template class ACE_Event_Handler_Handle_Timeout_Upcall<ACE_Null_Mutex>; -template class ACE_Timer_Queue_T<ACE_Event_Handler *, ACE_Event_Handler_Handle_Timeout_Upcall<ACE_Null_Mutex>, ACE_Null_Mutex>; -template class ACE_Timer_Heap_T<ACE_Event_Handler *, ACE_Event_Handler_Handle_Timeout_Upcall<ACE_Null_Mutex>, ACE_Null_Mutex>; -template class ACE_Timer_Heap_Iterator_T<ACE_Event_Handler *, ACE_Event_Handler_Handle_Timeout_Upcall<ACE_Null_Mutex>, ACE_Null_Mutex>; -template class ACE_Timer_Queue_Iterator_T<ACE_Event_Handler *, ACE_Event_Handler_Handle_Timeout_Upcall<ACE_Null_Mutex>, ACE_Null_Mutex>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Thread_Condition<ACE_Thread_Mutex> -#pragma instantiate ACE_Condition<ACE_Thread_Mutex> -#pragma instantiate ACE_Event_Handler_Handle_Timeout_Upcall<ACE_Null_Mutex> -#pragma instantiate ACE_Timer_Queue_T<ACE_Event_Handler *, ACE_Event_Handler_Handle_Timeout_Upcall<ACE_Null_Mutex>, ACE_Null_Mutex> -#pragma instantiate ACE_Timer_Heap_T<ACE_Event_Handler *, ACE_Event_Handler_Handle_Timeout_Upcall<ACE_Null_Mutex>, ACE_Null_Mutex> -#pragma instantiate ACE_Timer_Heap_Iterator_T<ACE_Event_Handler *, ACE_Event_Handler_Handle_Timeout_Upcall<ACE_Null_Mutex>, ACE_Null_Mutex> -#pragma instantiate ACE_Timer_Queue_Iterator_T<ACE_Event_Handler *, ACE_Event_Handler_Handle_Timeout_Upcall<ACE_Null_Mutex>, ACE_Null_Mutex> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ -#endif /* ACE_MT_SAFE */ - ACE_RCSID(Timer_Queue, Thread_Timer_Queue_Test, "$Id$") // Administrivia methods... diff --git a/examples/Timer_Queue/main_async.cpp b/examples/Timer_Queue/main_async.cpp index 7cb90111fde..8c21c4fcdd2 100644 --- a/examples/Timer_Queue/main_async.cpp +++ b/examples/Timer_Queue/main_async.cpp @@ -55,12 +55,3 @@ ACE_TMAIN (int, ACE_TCHAR *[]) return driver->run_test (); } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class auto_ptr <ASYNC_TIMER_QUEUE_TEST_DRIVER>; -template class ACE_Auto_Basic_Ptr <ASYNC_TIMER_QUEUE_TEST_DRIVER>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate auto_ptr <ASYNC_TIMER_QUEUE_TEST_DRIVER> -#pragma instantiate ACE_Auto_Basic_Ptr <ASYNC_TIMER_QUEUE_TEST_DRIVER> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - - diff --git a/examples/Timer_Queue/main_reactor.cpp b/examples/Timer_Queue/main_reactor.cpp index 76088bc5287..9ce80093bd9 100644 --- a/examples/Timer_Queue/main_reactor.cpp +++ b/examples/Timer_Queue/main_reactor.cpp @@ -55,16 +55,3 @@ ACE_TMAIN (int, ACE_TCHAR *[]) return driver->run_test (); } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class auto_ptr <REACTOR_TIMER_QUEUE_TEST_DRIVER>; -template class ACE_Auto_Basic_Ptr <REACTOR_TIMER_QUEUE_TEST_DRIVER>; -template class Timer_Queue_Test_Driver<ACE_Timer_Heap *, - Input_Handler, - Input_Handler::ACTION>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate auto_ptr <REACTOR_TIMER_QUEUE_TEST_DRIVER> -#pragma instantiate ACE_Auto_Basic_Ptr <REACTOR_TIMER_QUEUE_TEST_DRIVER> -#pragma instantiate Timer_Queue_Test_Driver<ACE_Timer_Heap *, \ - Input_Handler, \ - Input_Handler::ACTION> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/Timer_Queue/main_thread.cpp b/examples/Timer_Queue/main_thread.cpp index 3f8aba5866e..7287e0ed263 100644 --- a/examples/Timer_Queue/main_thread.cpp +++ b/examples/Timer_Queue/main_thread.cpp @@ -56,10 +56,3 @@ ACE_TMAIN (int, ACE_TCHAR *[]) return driver->run_test (); } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class auto_ptr <THREAD_TIMER_QUEUE_TEST_DRIVER>; -template class ACE_Auto_Basic_Ptr <THREAD_TIMER_QUEUE_TEST_DRIVER>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate auto_ptr <THREAD_TIMER_QUEUE_TEST_DRIVER> -#pragma instantiate ACE_Auto_Basic_Ptr <THREAD_TIMER_QUEUE_TEST_DRIVER> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/Web_Crawler/Command_Processor.cpp b/examples/Web_Crawler/Command_Processor.cpp index c23310be017..9f4141f3c6c 100644 --- a/examples/Web_Crawler/Command_Processor.cpp +++ b/examples/Web_Crawler/Command_Processor.cpp @@ -123,16 +123,6 @@ Command_Processor::insert (Command *command) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Singleton<Options, ACE_Null_Mutex>; -template class ACE_Node<Command *>; -template class ACE_Unbounded_Queue_Iterator<Command *>; -template class ACE_Unbounded_Queue<Command *>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Singleton<Options, ACE_Null_Mutex> -#pragma instantiate ACE_Node<Command *> -#pragma instantiate ACE_Unbounded_Queue_Iterator<Command *> -#pragma instantiate ACE_Unbounded_Queue<Command *> -#elif defined (ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION) +#if defined (ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION) template ACE_Singleton<Options, ACE_Null_Mutex> *ACE_Singleton<Options, ACE_Null_Mutex>::singleton_; -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ +#endif /* ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION */ diff --git a/examples/Web_Crawler/URL_Visitor.cpp b/examples/Web_Crawler/URL_Visitor.cpp index 6f2b5dbeeb4..1422665ffb0 100644 --- a/examples/Web_Crawler/URL_Visitor.cpp +++ b/examples/Web_Crawler/URL_Visitor.cpp @@ -237,154 +237,6 @@ URL_Visitor::~URL_Visitor (void) { } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \ - defined (ACE_HAS_GNU_REPO) - // The explicit instantiations are necessary with g++ 2.91.66 - // with -frepo, because it misses some of them. - -template class ACE_Equal_To<ACE_URL_Addr>; -template class ACE_Hash<ACE_URL_Addr>; - -template class ACE_Hash_Map_Manager<ACE_URL_Addr, URL_Status, ACE_Null_Mutex>; -template class ACE_Hash_Map_Iterator<ACE_URL_Addr, URL_Status, ACE_Null_Mutex>; -template class ACE_Hash_Map_Reverse_Iterator<ACE_URL_Addr, URL_Status, ACE_Null_Mutex>; -template class ACE_Hash_Map_Entry<ACE_URL_Addr, URL_Status>; -template class ACE_Hash_Map_Iterator_Base_Ex<ACE_URL_Addr, URL_Status, ACE_Hash<ACE_URL_Addr>, ACE_Equal_To<ACE_URL_Addr>, ACE_Null_Mutex>; -template class ACE_Hash_Map_Iterator_Ex<ACE_URL_Addr, URL_Status, ACE_Hash<ACE_URL_Addr>, ACE_Equal_To<ACE_URL_Addr>, ACE_Null_Mutex>; -template class ACE_Hash_Map_Reverse_Iterator_Ex<ACE_URL_Addr, URL_Status, ACE_Hash<ACE_URL_Addr>, ACE_Equal_To<ACE_URL_Addr>, ACE_Null_Mutex>; -template class ACE_Hash_Map_Manager_Ex<ACE_URL_Addr, URL_Status, ACE_Hash<ACE_URL_Addr>, ACE_Equal_To<ACE_URL_Addr>, ACE_Null_Mutex>; - -template class ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH>; -template class ACE_Refcounted_Hash_Recyclable<ACE_INET_Addr>; -template class ACE_NOOP_Creation_Strategy<Client_Svc_Handler>; -template class ACE_Concurrency_Strategy<Client_Svc_Handler>; -template class ACE_Connect_Strategy<Client_Svc_Handler, ACE_SOCK_CONNECTOR>; -template class ACE_Connector_Base<Client_Svc_Handler>; -template class ACE_Connector<Client_Svc_Handler, ACE_SOCK_CONNECTOR>; -template class ACE_Creation_Strategy<Client_Svc_Handler>; -template class ACE_Hash_Map_Entry<ACE_ADDR, Client_Svc_Handler *>; -template class ACE_Hash<ACE_ADDR>; -template class ACE_Equal_To<ACE_ADDR>; -template class ACE_NOOP_Concurrency_Strategy<Client_Svc_Handler>; -template class ACE_Recycling_Strategy<Client_Svc_Handler>; -template class ACE_Strategy_Connector<Client_Svc_Handler, ACE_SOCK_CONNECTOR>; -template class ACE_NonBlocking_Connect_Handler<Client_Svc_Handler>; - - -template class ACE_Pair<Client_Svc_Handler *, ATTRIBUTES>; -template class ACE_Reference_Pair<ACE_ADDR, Client_Svc_Handler *>; -template class ACE_Hash_Map_Entry<ACE_ADDR, CACHED_HANDLER>; - -template class ACE_Hash_Map_Manager<ACE_ADDR, Client_Svc_Handler *, ACE_Null_Mutex>; -template class ACE_Hash_Map_Iterator<ACE_ADDR, Client_Svc_Handler *, ACE_Null_Mutex>; -template class ACE_Hash_Map_Reverse_Iterator<ACE_ADDR, Client_Svc_Handler *, ACE_Null_Mutex>; -template class ACE_Hash_Map_Manager_Ex<ACE_ADDR, Client_Svc_Handler *, H_KEY, C_KEYS, ACE_Null_Mutex>; -template class ACE_Hash_Map_Iterator_Ex<ACE_ADDR, Client_Svc_Handler *, H_KEY, C_KEYS, ACE_Null_Mutex>; -template class ACE_Hash_Map_Reverse_Iterator_Ex<ACE_ADDR, Client_Svc_Handler *, H_KEY, C_KEYS, ACE_Null_Mutex>; -template class ACE_Hash_Map_Iterator_Base_Ex<ACE_ADDR, Client_Svc_Handler *, H_KEY, C_KEYS, ACE_Null_Mutex>; - -template class ACE_Hash_Map_Manager<ACE_ADDR, CACHED_HANDLER, ACE_Null_Mutex>; -template class ACE_Hash_Map_Iterator<ACE_ADDR, CACHED_HANDLER, ACE_Null_Mutex>; -template class ACE_Hash_Map_Reverse_Iterator<ACE_ADDR, CACHED_HANDLER, ACE_Null_Mutex>; -template class ACE_Hash_Map_Manager_Ex<ACE_ADDR, CACHED_HANDLER, H_KEY, C_KEYS, ACE_Null_Mutex>; -template class ACE_Hash_Map_Iterator_Ex<ACE_ADDR, CACHED_HANDLER, H_KEY, C_KEYS, ACE_Null_Mutex>; -template class ACE_Hash_Map_Reverse_Iterator_Ex<ACE_ADDR, CACHED_HANDLER, H_KEY, C_KEYS, ACE_Null_Mutex>; -template class ACE_Hash_Map_Iterator_Base_Ex<ACE_ADDR, CACHED_HANDLER, H_KEY, C_KEYS, ACE_Null_Mutex>; -template class ACE_Hash_Map_Bucket_Iterator<ACE_ADDR, CACHED_HANDLER, H_KEY, C_KEYS, ACE_Null_Mutex>; -template class ACE_Hash_Map_Bucket_Iterator<ACE_ADDR, Client_Svc_Handler *, H_KEY, C_KEYS, ACE_Null_Mutex>; - -// = Caching_Strategy -template class ACE_Hash_Cache_Map_Manager<ACE_ADDR, Client_Svc_Handler *, H_KEY, C_KEYS, CACHING_STRATEGY, ATTRIBUTES>; - -template class ACE_LRU_Caching_Strategy<ATTRIBUTES, CACHING_UTILITY>; - -template class ACE_Cache_Map_Manager<ACE_ADDR, Client_Svc_Handler *, HASH_MAP, HASH_MAP_ITERATOR, HASH_MAP_REVERSE_ITERATOR, CACHING_STRATEGY, ATTRIBUTES>; -template class ACE_Cache_Map_Iterator<ACE_ADDR, Client_Svc_Handler *, HASH_MAP_ITERATOR, CACHING_STRATEGY, ATTRIBUTES>; -template class ACE_Cache_Map_Reverse_Iterator<ACE_ADDR, Client_Svc_Handler *, HASH_MAP_REVERSE_ITERATOR, CACHING_STRATEGY, ATTRIBUTES>; - -template class ACE_Cached_Connect_Strategy_Ex<Client_Svc_Handler, ACE_SOCK_CONNECTOR, CACHING_STRATEGY, ATTRIBUTES, ACE_SYNCH_NULL_MUTEX>; -template class ACE_Cached_Connect_Strategy<Client_Svc_Handler, ACE_SOCK_CONNECTOR, ACE_SYNCH_NULL_MUTEX>; - -template class ACE_Cleanup_Strategy<ACE_ADDR, CACHED_HANDLER, HASH_MAP>; -template class ACE_Recyclable_Handler_Cleanup_Strategy<ACE_ADDR, CACHED_HANDLER, HASH_MAP>; -template class ACE_Recyclable_Handler_Caching_Utility<ACE_ADDR, CACHED_HANDLER, HASH_MAP, HASH_MAP_ITERATOR, ATTRIBUTES>; - -template class ACE_Reverse_Lock<ACE_SYNCH_NULL_MUTEX>; -template class ACE_Guard<ACE_Reverse_Lock<ACE_SYNCH_NULL_MUTEX> >; - -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) - -#pragma instantiate ACE_Equal_To<ACE_URL_Addr> -#pragma instantiate ACE_Hash<ACE_URL_Addr> -#pragma instantiate ACE_Hash_Map_Manager<ACE_URL_Addr, URL_Status, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Iterator<ACE_URL_Addr, URL_Status, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Reverse_Iterator<ACE_URL_Addr, URL_Status, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Entry<ACE_URL_Addr, URL_Status> -#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<ACE_URL_Addr, URL_Status, ACE_Hash<ACE_URL_Addr>, ACE_Equal_To<ACE_URL_Addr>, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Iterator_Ex<ACE_URL_Addr, URL_Status, ACE_Hash<ACE_URL_Addr>, ACE_Equal_To<ACE_URL_Addr>, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<ACE_URL_Addr, URL_Status, ACE_Hash<ACE_URL_Addr>, ACE_Equal_To<ACE_URL_Addr>, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Manager_Ex<ACE_URL_Addr, URL_Status, ACE_Hash<ACE_URL_Addr>, ACE_Equal_To<ACE_URL_Addr>, ACE_Null_Mutex> - -#pragma instantiate ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH> -#pragma instantiate ACE_Refcounted_Hash_Recyclable<ACE_INET_Addr> -#pragma instantiate ACE_NOOP_Creation_Strategy<Client_Svc_Handler> -#pragma instantiate ACE_Concurrency_Strategy<Client_Svc_Handler> -#pragma instantiate ACE_Connect_Strategy<Client_Svc_Handler, ACE_SOCK_CONNECTOR> -#pragma instantiate ACE_Connector_Base<Client_Svc_Handler> -#pragma instantiate ACE_Connector<Client_Svc_Handler, ACE_SOCK_CONNECTOR> -#pragma instantiate ACE_Creation_Strategy<Client_Svc_Handler> -#pragma instantiate ACE_Hash_Map_Entry<ACE_ADDR, Client_Svc_Handler *> -#pragma instantiate ACE_Hash<ACE_ADDR> -#pragma instantiate ACE_Equal_To<ACE_ADDR> -#pragma instantiate ACE_NOOP_Concurrency_Strategy<Client_Svc_Handler> -#pragma instantiate ACE_Recycling_Strategy<Client_Svc_Handler> -#pragma instantiate ACE_Strategy_Connector<Client_Svc_Handler, ACE_SOCK_CONNECTOR> -#pragma instantiate ACE_NonBlocking_Connect_Handler<Client_Svc_Handler> - -#pragma instantiate ACE_Pair<Client_Svc_Handler *, ATTRIBUTES> -#pragma instantiate ACE_Reference_Pair<ACE_ADDR, Client_Svc_Handler *> -#pragma instantiate ACE_Hash_Map_Entry<ACE_ADDR, CACHED_HANDLER> - -#pragma instantiate ACE_Hash_Map_Manager<ACE_ADDR, Client_Svc_Handler *, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Iterator<ACE_ADDR, Client_Svc_Handler *, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Reverse_Iterator<ACE_ADDR, Client_Svc_Handler *, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Manager_Ex<ACE_ADDR, Client_Svc_Handler *, H_KEY, C_KEYS, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Iterator_Ex<ACE_ADDR, Client_Svc_Handler *, H_KEY, C_KEYS, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<ACE_ADDR, Client_Svc_Handler *, H_KEY, C_KEYS, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<ACE_ADDR, Client_Svc_Handler *, H_KEY, C_KEYS, ACE_Null_Mutex> - -#pragma instantiate ACE_Hash_Map_Manager<ACE_ADDR, CACHED_HANDLER, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Iterator<ACE_ADDR, CACHED_HANDLER, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Reverse_Iterator<ACE_ADDR, CACHED_HANDLER, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Manager_Ex<ACE_ADDR, CACHED_HANDLER, H_KEY, C_KEYS, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Iterator_Ex<ACE_ADDR, CACHED_HANDLER, H_KEY, C_KEYS, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<ACE_ADDR, CACHED_HANDLER, H_KEY, C_KEYS, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<ACE_ADDR, CACHED_HANDLER, H_KEY, C_KEYS, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Bucket_Iterator<ACE_ADDR, CACHED_HANDLER, H_KEY, C_KEYS, ACE_Null_Mutex> -#pragma instantiate ACE_Hash_Map_Bucket_Iterator<ACE_ADDR, Client_Svc_Handler *, H_KEY, C_KEYS, ACE_Null_Mutex> - -// = Caching_Strategy -#pragma instantiate ACE_Hash_Cache_Map_Manager<ACE_ADDR, Client_Svc_Handler *, H_KEY, C_KEYS, CACHING_STRATEGY, ATTRIBUTES> - -#pragma instantiate ACE_LRU_Caching_Strategy<ATTRIBUTES, CACHING_UTILITY> - -#pragma instantiate ACE_Cache_Map_Manager<ACE_ADDR, Client_Svc_Handler *, HASH_MAP, HASH_MAP_ITERATOR, HASH_MAP_REVERSE_ITERATOR, CACHING_STRATEGY, ATTRIBUTES> -#pragma instantiate ACE_Cache_Map_Iterator<ACE_ADDR, Client_Svc_Handler *, HASH_MAP_ITERATOR, CACHING_STRATEGY, ATTRIBUTES> -#pragma instantiate ACE_Cache_Map_Reverse_Iterator<ACE_ADDR, Client_Svc_Handler *, HASH_MAP_REVERSE_ITERATOR, CACHING_STRATEGY, ATTRIBUTES> - -#pragma instantiate ACE_Cached_Connect_Strategy_Ex<Client_Svc_Handler, ACE_SOCK_CONNECTOR, CACHING_STRATEGY, ATTRIBUTES, ACE_SYNCH_NULL_MUTEX> -#pragma instantiate ACE_Cached_Connect_Strategy<Client_Svc_Handler, ACE_SOCK_CONNECTOR, ACE_SYNCH_NULL_MUTEX> - -#pragma instantiate ACE_Cleanup_Strategy<ACE_ADDR, CACHED_HANDLER, HASH_MAP> -#pragma instantiate ACE_Recyclable_Handler_Cleanup_Strategy<ACE_ADDR, CACHED_HANDLER, HASH_MAP> -#pragma instantiate ACE_Recyclable_Handler_Caching_Utility<ACE_ADDR, CACHED_HANDLER, HASH_MAP, HASH_MAP_ITERATOR, ATTRIBUTES> - -#pragma instantiate ACE_Reverse_Lock<ACE_SYNCH_NULL_MUTEX> -#pragma instantiate ACE_Guard<ACE_Reverse_Lock<ACE_SYNCH_NULL_MUTEX> > - -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - - URL_Validation_Visitor::URL_Validation_Visitor (void) { ACE_NEW (this->caching_connect_strategy_, |