Commit 424198d8 authored by zhujiashun's avatar zhujiashun

remove unnecessary logs

parent d04fe820
...@@ -176,15 +176,12 @@ TEST(CondTest, cpp_wrapper) { ...@@ -176,15 +176,12 @@ TEST(CondTest, cpp_wrapper) {
cv_mutex_waiter, &a)); cv_mutex_waiter, &a));
} }
ASSERT_EQ(0, pthread_create(&signal_thread, NULL, cv_signaler, &a)); ASSERT_EQ(0, pthread_create(&signal_thread, NULL, cv_signaler, &a));
LOG(INFO) << "Start to sleep";
bthread_usleep(100L * 1000); bthread_usleep(100L * 1000);
{ {
BAIDU_SCOPED_LOCK(a.mutex); BAIDU_SCOPED_LOCK(a.mutex);
stop = true; stop = true;
} }
LOG(INFO) << "Stopped, join signal_thread";
pthread_join(signal_thread, NULL); pthread_join(signal_thread, NULL);
LOG(INFO) << "signal_thread quit, join waiter_threads";
a.cond.notify_all(); a.cond.notify_all();
for (size_t i = 0; i < ARRAY_SIZE(bmutex_waiter_threads); ++i) { for (size_t i = 0; i < ARRAY_SIZE(bmutex_waiter_threads); ++i) {
pthread_join(bmutex_waiter_threads[i], NULL); pthread_join(bmutex_waiter_threads[i], NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment