summaryrefslogtreecommitdiff
path: root/performance-tests/Synch-Benchmarks/context_test.cpp
diff options
context:
space:
mode:
authornobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-12-30 06:50:29 +0000
committernobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-12-30 06:50:29 +0000
commita4a7690c336d4c8a16b3041c86d501ba38226e96 (patch)
tree9e9f93a98edd2591453f092d178ad29a1c5fb519 /performance-tests/Synch-Benchmarks/context_test.cpp
parenta5c4d8047ab58df5c45092e18ae503ad40518f0e (diff)
downloadATCD-unlabeled-4.1.2.tar.gz
This commit was manufactured by cvs2svn to create branchunlabeled-4.1.2
'unlabeled-4.1.2'.
Diffstat (limited to 'performance-tests/Synch-Benchmarks/context_test.cpp')
-rw-r--r--performance-tests/Synch-Benchmarks/context_test.cpp40
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 */