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/context_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/context_test.cpp')
| -rw-r--r-- | performance-tests/Synch-Benchmarks/context_test.cpp | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/performance-tests/Synch-Benchmarks/context_test.cpp b/performance-tests/Synch-Benchmarks/context_test.cpp deleted file mode 100644 index ff83af6af3a..00000000000 --- a/performance-tests/Synch-Benchmarks/context_test.cpp +++ /dev/null @@ -1,40 +0,0 @@ -#include "ace/Synch.h" -// $Id$ - -#include "Options.h" -#include "Benchmark.h" - -#if defined (ACE_HAS_THREADS) - -class Context_Test : public Benchmark -{ -public: - virtual int svc (void); -}; - -int -Context_Test::svc (void) -{ - int ni = this->thr_id (); - - synch_count = 1; - - while (!this->done ()) - { - ACE_Thread::yield (); - options.thr_work_count[ni]++; - } - - /* NOTREACHED */ - return 0; -} - -extern "C" ACE_Service_Object *context_test (void); - -ACE_Service_Object *context_test (void) -{ - return new Context_Test; -} - -// ACE_Service_Object_Type ct (&context_test, "Context_Test"); -#endif /* ACE_HAS_THREADS */ |
