Combine background_thread started / paused into state.

This commit is contained in:
Qi Wang
2017-06-09 15:45:25 -07:00
committed by Qi Wang
parent b83b5ad44a
commit 394df9519d
4 changed files with 59 additions and 34 deletions

View File

@@ -80,7 +80,7 @@ TEST_BEGIN(test_background_thread_running) {
test_repeat_background_thread_ctl(false);
test_switch_background_thread_ctl(true);
assert_b_eq(info->started, true,
assert_b_eq(info->state, background_thread_started,
"Background_thread did not start.\n");
nstime_t start, now;