diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-22 21:38:07 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-22 21:38:07 +0000 |
commit | 696a37c97fc2a59ee04700e326889309d435ea38 (patch) | |
tree | bb35ef273993a25efe6aa6d81e28accaa9d8d488 | |
parent | e40714f3607f192a9d3d73dfffb34cf4e73e12d0 (diff) | |
download | ATCD-696a37c97fc2a59ee04700e326889309d435ea38.tar.gz |
Reduced the default iterations to 200 and fixed template instantiations.
-rw-r--r-- | tests/Cached_Accept_Conn_Test.cpp | 15 | ||||
-rw-r--r-- | tests/Cached_Conn_Test.cpp | 6 |
2 files changed, 11 insertions, 10 deletions
diff --git a/tests/Cached_Accept_Conn_Test.cpp b/tests/Cached_Accept_Conn_Test.cpp index ed3db683e1c..3e2a296859a 100644 --- a/tests/Cached_Accept_Conn_Test.cpp +++ b/tests/Cached_Accept_Conn_Test.cpp @@ -193,7 +193,7 @@ static Caching_Strategy_Type caching_strategy_type = ACE_ALL; #if defined (ACE_WIN32) static int iterations = 2000; #else -static int iterations = 500; +static int iterations = 200; #endif /* ACE_WIN32 */ //==================================================================== @@ -621,7 +621,7 @@ main (int argc, #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -// = Consume handles +// = Handle Gobbler template class ACE_Node<ACE_HANDLE>; template class ACE_Unbounded_Set<ACE_HANDLE>; template class ACE_Unbounded_Set_Iterator<ACE_HANDLE>; @@ -714,6 +714,12 @@ 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) + +// = Handle Gobbler +#pragma instantiate ACE_Node<ACE_HANDLE> +#pragma instantiate ACE_Unbounded_Set<ACE_HANDLE> +#pragma instantiate ACE_Unbounded_Set_Iterator<ACE_HANDLE> + #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> @@ -771,11 +777,6 @@ template class ACE_Guard<ACE_Reverse_Lock<ACE_SYNCH_NULL_MUTEX> >; #if !defined (ACE_HAS_BROKEN_EXTENDED_TEMPLATES) -// = Consume handles -#pragma instantiate ACE_Node<ACE_HANDLE> -#pragma instantiate ACE_Unbounded_Set<ACE_HANDLE> -#pragma instantiate ACE_Unbounded_Set_Iterator<ACE_HANDLE> - #pragma instantiate ACE_Caching_Strategy<ATTRIBUTES, CACHING_UTILITY> #pragma instantiate ACE_LFU_Caching_Strategy<ATTRIBUTES, CACHING_UTILITY> #pragma instantiate ACE_FIFO_Caching_Strategy<ATTRIBUTES, CACHING_UTILITY> diff --git a/tests/Cached_Conn_Test.cpp b/tests/Cached_Conn_Test.cpp index 21a6f101012..c6969333038 100644 --- a/tests/Cached_Conn_Test.cpp +++ b/tests/Cached_Conn_Test.cpp @@ -175,7 +175,7 @@ static CACHED_CONNECT_STRATEGY *connect_strategy = 0; #if defined (ACE_WIN32) static int iterations = 2000; #else -static int iterations = 500; +static int iterations = 200; #endif /* ACE_WIN32 */ //==================================================================== @@ -525,7 +525,7 @@ main (int argc, #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -// = Consume handles +// = Handle Gobbler template class ACE_Node<ACE_HANDLE>; template class ACE_Unbounded_Set<ACE_HANDLE>; template class ACE_Unbounded_Set_Iterator<ACE_HANDLE>; @@ -612,7 +612,7 @@ template class ACE_Guard<ACE_Reverse_Lock<ACE_SYNCH_NULL_MUTEX> >; #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -// = Consume handles +// = Handle Gobbler #pragma instantiate ACE_Node<ACE_HANDLE> #pragma instantiate ACE_Unbounded_Set<ACE_HANDLE> #pragma instantiate ACE_Unbounded_Set_Iterator<ACE_HANDLE> |