Skip to content

Commit

Permalink
base_c: fixed problem in test where mutex could be destroyed while st…
Browse files Browse the repository at this point in the history
…ill locked
  • Loading branch information
Marcus Winter committed May 26, 2017
1 parent 4b88bc7 commit c56be95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base_c/test/condition_var_test.cc
Expand Up @@ -56,8 +56,8 @@ void ConditionVarTest::TestNotify() {
embb_mutex_lock(&mutex_cond_notify_);
embb_counter_increment(&counter_);
embb_condition_wait(&cond_notify_, &mutex_cond_notify_);
embb_counter_increment(&counter_);
embb_mutex_unlock(&mutex_cond_notify_);
embb_counter_increment(&counter_);
} else {
embb_duration_t duration = EMBB_DURATION_INIT;
embb_duration_set_milliseconds(&duration, 1);
Expand Down

0 comments on commit c56be95

Please sign in to comment.