MCPcopy Create free account
hub / github.com/apache/impala / SleeperThread

Function SleeperThread

be/src/kudu/util/debug-util-test.cc:79–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77
78namespace {
79void SleeperThread(CountDownLatch* l) {
80 // We use an infinite loop around WaitFor() instead of a normal Wait()
81 // so that this test passes in TSAN. Without this, we run into this TSAN
82 // bug which prevents the sleeping thread from handling signals:
83 // https://code.google.com/p/thread-sanitizer/issues/detail?id=91
84 while (!l->WaitFor(MonoDelta::FromMilliseconds(10))) {
85 }
86}
87
88void fake_signal_handler(int signum) {}
89

Callers 1

TEST_FFunction · 0.85

Calls 1

WaitForMethod · 0.45

Tested by

no test coverage detected