diff options
author | Steve Huston <shuston@riverace.com> | 1997-07-23 17:57:25 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 1997-07-23 17:57:25 +0000 |
commit | 7e064186e8d02f93cec87da5ae665ea692175a7e (patch) | |
tree | cd49e2a8e09e96296ad53ac9fe2eeb04ad14e39f /performance-tests | |
parent | 0185785931c5782e1483d242066a8a329d846920 (diff) | |
download | ATCD-7e064186e8d02f93cec87da5ae665ea692175a7e.tar.gz |
Fixed to work on platforms with DCE threads (e.g. HP-UX).
Diffstat (limited to 'performance-tests')
-rw-r--r-- | performance-tests/Synch-Benchmarks/Benchmark.cpp | 4 | ||||
-rw-r--r-- | performance-tests/Synch-Benchmarks/Benchmark.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/performance-tests/Synch-Benchmarks/Benchmark.cpp b/performance-tests/Synch-Benchmarks/Benchmark.cpp index 9acf1e5d928..d8d4d916b8c 100644 --- a/performance-tests/Synch-Benchmarks/Benchmark.cpp +++ b/performance-tests/Synch-Benchmarks/Benchmark.cpp @@ -67,7 +67,7 @@ Benchmark::svc_run (Benchmark *bp) return (void *) (bp->svc () == -1 ? -1 : 0); } -#if defined (ACE_HAS_PTHREADS) || defined (VXWORKS) +#if defined (ACE_HAS_PTHREADS) || defined (ACE_HAS_DCETHREADS) || defined (VXWORKS) /* static */ MT_INT Thr_ID::thread_id_ (0); @@ -91,5 +91,5 @@ Thr_ID::thr_id (int i) #if defined (ACE_TEMPLATES_REQUIRE_SPECIALIZATION) template class ACE_TSS<Thr_ID>; #endif /* ACE_TEMPLATES_REQUIRE_SPECIALIZATION */ -#endif /* ACE_HAS_PTHREADS || VXWORKS */ +#endif /* ACE_HAS_PTHREADS || ACE_HAS_DCETHREADS || VXWORKS */ #endif /* ACE_HAS_THREADS */ diff --git a/performance-tests/Synch-Benchmarks/Benchmark.h b/performance-tests/Synch-Benchmarks/Benchmark.h index 41c21f59008..a898cb402ee 100644 --- a/performance-tests/Synch-Benchmarks/Benchmark.h +++ b/performance-tests/Synch-Benchmarks/Benchmark.h @@ -15,7 +15,7 @@ extern int buffer; extern ACE_Svc_Export int synch_count; -#if defined (ACE_HAS_PTHREADS) || defined (VXWORKS) +#if defined (ACE_HAS_PTHREADS) || defined (ACE_HAS_DCETHREADS) || defined (VXWORKS) typedef ACE_Atomic_Op<ACE_Thread_Mutex, int> MT_INT; @@ -38,7 +38,7 @@ private: int thr_id_; static MT_INT thread_id_; }; -#endif /* ACE_HAS_PTHREADS || VXWORKS */ +#endif /* ACE_HAS_PTHREADS || ACE_HAS_DCETHREADS || VXWORKS */ class ACE_Svc_Export Benchmark : public ACE_Service_Object // TITLE |