From d36f1bdb397a602ecd4052a6ed2a1f02a84d4dc1 Mon Sep 17 00:00:00 2001 From: Tobias Schuele Date: Tue, 1 Sep 2015 13:51:42 +0200 Subject: [PATCH] Fixed typos in condition_var_test.cc --- base_c/test/condition_var_test.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/base_c/test/condition_var_test.cc b/base_c/test/condition_var_test.cc index ad0fe32..3a526d2 100644 --- a/base_c/test/condition_var_test.cc +++ b/base_c/test/condition_var_test.cc @@ -38,7 +38,7 @@ ConditionVarTest::ConditionVarTest() embb_condition_init(&cond_wait_); embb_mutex_init(&mutex_cond_wait_, EMBB_MUTEX_PLAIN); - CreateUnit("Timed wait timouts") + CreateUnit("Timed wait timeouts") .Add(&ConditionVarTest::TestTimedWaitTimeouts, this); if (num_threads_ >= 2) { CreateUnit("Condition Notify Test") @@ -64,10 +64,10 @@ void ConditionVarTest::TestNotify() { while (embb_counter_get(&counter_) < static_cast(num_threads_-1)) - {} // all threads entered critical section + {} // All threads entered critical section embb_mutex_lock(&mutex_cond_notify_); embb_mutex_unlock(&mutex_cond_notify_); - // All threads called wait on the condition (Even last thread) + // All threads called wait on the condition (even last thread) embb_counter_init(&counter_); @@ -75,7 +75,7 @@ void ConditionVarTest::TestNotify() { embb_mutex_lock(&mutex_cond_wait_); embb_condition_wait_for(&cond_wait_, &mutex_cond_wait_, &duration); while (embb_counter_get(&counter_) == 0) - {} //if hangs here signal has not succeded + {} // If test hangs here, signalling has not succeeded PT_ASSERT_EQ_MSG(embb_counter_get(&counter_), static_cast(1), "Only one thread notified"); @@ -85,7 +85,7 @@ void ConditionVarTest::TestNotify() { while (embb_counter_get(&counter_) != static_cast(num_threads_-1)) - {} // If this hangs then not all threads were notified. + {} // If test hangs here, not all threads were notified embb_mutex_unlock(&mutex_cond_wait_); embb_mutex_destroy(&mutex_cond_wait_); @@ -111,7 +111,7 @@ void ConditionVarTest::TestTimedWaitTimeouts() { int status = embb_condition_wait_until(&cond, &mutex, &time); PT_EXPECT_EQ(status, EMBB_TIMEDOUT); - // Wait for a future timepoint + // Wait for a future time point status = embb_duration_set_milliseconds(&duration, 1); PT_EXPECT_EQ(status, EMBB_SUCCESS); status = embb_time_in(&time, &duration); // Time now -- libgit2 0.26.0