diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-01-01 08:00:34 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-01-01 08:00:34 +0000 |
commit | 437eea6fa08e931864f89be91d14a816f69075c7 (patch) | |
tree | b8c1fd723fdcd61c3855d3a3a21a9cd45a268219 /performance-tests/Synch-Benchmarks/mutex_test.cpp | |
parent | ea0d28240863caf437a18071bfd03e7b146c5ade (diff) | |
download | ATCD-unlabeled-4.2.2.tar.gz |
This commit was manufactured by cvs2svn to create branchunlabeled-4.2.2
'unlabeled-4.2.2'.
Diffstat (limited to 'performance-tests/Synch-Benchmarks/mutex_test.cpp')
-rw-r--r-- | performance-tests/Synch-Benchmarks/mutex_test.cpp | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/performance-tests/Synch-Benchmarks/mutex_test.cpp b/performance-tests/Synch-Benchmarks/mutex_test.cpp deleted file mode 100644 index 91c4d8aaef0..00000000000 --- a/performance-tests/Synch-Benchmarks/mutex_test.cpp +++ /dev/null @@ -1,46 +0,0 @@ -#include "ace/Synch.h" -// $Id$ - -#include "Options.h" -#include "Benchmark.h" - -#if defined (ACE_HAS_THREADS) - -class Mutex_Test : public Benchmark -{ -public: - virtual int svc (void); - -private: - static ACE_Thread_Mutex mutex; -}; - -ACE_Thread_Mutex Mutex_Test::mutex; - -int -Mutex_Test::svc (void) -{ - // Extract out the unique thread-specific value to be used as an - // index... - int ni = this->thr_id (); - synch_count = 2; - - while (!this->done ()) - { - mutex.acquire (); - options.thr_work_count[ni]++; - buffer++; - mutex.release (); - } - /* NOTREACHED */ - return 0; -} - -extern "C" ACE_Service_Object *mutex_test (void); - -ACE_Service_Object *mutex_test (void) -{ - return new Mutex_Test; -} -// ACE_Service_Object_Type mut (&mutex_test, "Mutex_Test"); -#endif /* ACE_HAS_THREADS */ |