summaryrefslogtreecommitdiff
path: root/tests/TSS_Test.cpp
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2002-09-12 16:23:29 +0000
committerSteve Huston <shuston@riverace.com>2002-09-12 16:23:29 +0000
commita5f60b00663523b6f0dadada673e271aab383934 (patch)
tree19236bd15819a3b78617688e25c21575d2aca9fb /tests/TSS_Test.cpp
parent956f09e2c1238a62679c18b08b41eda037dd6125 (diff)
downloadATCD-a5f60b00663523b6f0dadada673e271aab383934.tar.gz
ChangeLogTag:Thu Sep 12 12:02:31 2002 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'tests/TSS_Test.cpp')
-rw-r--r--tests/TSS_Test.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/TSS_Test.cpp b/tests/TSS_Test.cpp
index 8f5881eb344..9b533796b5f 100644
--- a/tests/TSS_Test.cpp
+++ b/tests/TSS_Test.cpp
@@ -91,9 +91,7 @@ cleanup (void *ptr)
static void *
worker (void *c)
{
- // Cast the arg to a long, first, because a pointer is the same
- // size as a long on all current ACE platforms.
- int count = ACE_reinterpret_cast (int, c);
+ int count = *(ACE_static_cast (int*, c));
ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%t) worker, iterations = %d\n"), count));
@@ -279,10 +277,11 @@ ACE_TMAIN (int, ACE_TCHAR *[])
// Similarly, dynamically allocate u.
ACE_NEW_RETURN (u, ACE_TSS<ACE_TSS_Type_Adapter<u_int> >, 1);
+ int iterations = ITERATIONS;
if (ACE_Thread_Manager::instance ()->spawn_n
(threads,
ACE_THR_FUNC (worker),
- ACE_reinterpret_cast (void *, (int) ITERATIONS),
+ &iterations,
THR_BOUND) == -1)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("%p\n"), ACE_TEXT ("spawn_n")), 1);