be/test/util/thread_test.cpp
// Join with a thread and emit warnings while waiting to join.
// This has to be manually verified.
Join with a thread and emit warnings while waiting to join.
This has to be manually verified.
Join with a thread and emit warnings while waiting to join . This has to be manually verified .
TEST_F(ThreadTest, TestJoinAndWarn) {
    scoped_refptr<Thread> holder;
    Status status = Thread::create("test", "sleeper thread", SleepFor, MonoDelta::FromSeconds(1), &holder);
    ASSERT_TRUE(status.ok());
    status = ThreadJoiner(holder.get()).warn_after_ms(10).warn_every_ms(100).join();
    ASSERT_TRUE(status.ok());
}
TEST_F ( ThreadTest , TestJoinAndWarn ) { scoped_refptr < Thread > holder ; Status status = Thread :: create ( " " , " " , SleepFor , MonoDelta :: FromSeconds ( 1 ) , & holder ) ; ASSERT_TRUE ( status . ok ( ) ) ; status = ThreadJoiner ( holder . get ( ) ) . warn_after_ms ( 10 ) . warn_every_ms ( 100 ) . join ( ) ; ASSERT_TRUE ( status . ok ( ) ) ; }
Join with a thread and emit warnings while waiting to join.
Join with a thread and emit warnings while waiting to join .