diff options
Diffstat (limited to 'examples/Threads/cancel.cpp')
-rw-r--r-- | examples/Threads/cancel.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/examples/Threads/cancel.cpp b/examples/Threads/cancel.cpp index f10bb822580..4f3cabb73a9 100644 --- a/examples/Threads/cancel.cpp +++ b/examples/Threads/cancel.cpp @@ -13,15 +13,9 @@ ACE_RCSID(Threads, cancel, "$Id$") #if defined (ACE_HAS_THREADS) static void * -#if ACE_SIZEOF_VOID_P==8 && ACE_SIZEOF_INT<ACE_SIZEOF_VOID_P -worker (long iterations) -{ - for (long i = 0; i < iterations; i++) -#else worker (int iterations) { for (int i = 0; i < iterations; i++) -#endif { if ((i % 10) == 0 && (ACE_Thread_Manager::instance ()->testcancel (ACE_Thread::self ()) != 0)) @@ -45,11 +39,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) daemon.open (argv[0]); int n_threads = argc > 1 ? ACE_OS::atoi (argv[1]) : DEFAULT_THREADS; -#if ACE_SIZEOF_VOID_P==8 && ACE_SIZEOF_INT<ACE_SIZEOF_VOID_P - long n_iterations = (long)( argc > 2 ? ACE_OS::atoi (argv[2]) : DEFAULT_ITERATIONS ); -#else int n_iterations = argc > 2 ? ACE_OS::atoi (argv[2]) : DEFAULT_ITERATIONS; -#endif ACE_Thread_Manager *thr_mgr = ACE_Thread_Manager::instance (); |