summaryrefslogtreecommitdiff
path: root/ACE/performance-tests/Synch-Benchmarks/Base_Test/Baseline_Test.inl
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/performance-tests/Synch-Benchmarks/Base_Test/Baseline_Test.inl')
-rw-r--r--ACE/performance-tests/Synch-Benchmarks/Base_Test/Baseline_Test.inl43
1 files changed, 43 insertions, 0 deletions
diff --git a/ACE/performance-tests/Synch-Benchmarks/Base_Test/Baseline_Test.inl b/ACE/performance-tests/Synch-Benchmarks/Base_Test/Baseline_Test.inl
new file mode 100644
index 00000000000..05aa007478d
--- /dev/null
+++ b/ACE/performance-tests/Synch-Benchmarks/Base_Test/Baseline_Test.inl
@@ -0,0 +1,43 @@
+// $Id$
+
+ACE_INLINE size_t
+Baseline_Test_Base::iteration (void)
+{
+ return this->iteration_;
+}
+
+ACE_INLINE int
+Baseline_Test_Base::yield_method (void)
+{
+ return this->yield_method_;
+}
+
+ACE_INLINE int
+Baseline_Test_Options::test_try_lock (void)
+{
+ return this->test_try_lock_;
+}
+
+ACE_INLINE size_t
+Baseline_Test_Options::current_iteration (void)
+{
+ return this->current_iteration_;
+}
+
+ACE_INLINE void
+Baseline_Test_Options::start_inc_timer (void)
+{
+ this->timer.start_incr ();
+}
+
+ACE_INLINE void
+Baseline_Test_Options::stop_inc_timer (void)
+{
+ this->timer.stop_incr ();
+}
+
+ACE_INLINE int
+Baseline_Test_Options::inc_loop_counter (void)
+{
+ return (++this->current_iteration_ < this->total_iteration_);
+}