MCPcopy Create free account
hub / github.com/apache/arrow / BusyWait

Function BusyWait

cpp/src/arrow/testing/gtest_util.cc:802–807  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

800#endif
801
802void BusyWait(double seconds, std::function<bool()> predicate) {
803 const double period = 0.001;
804 for (int i = 0; !predicate() && i * period < seconds; ++i) {
805 SleepFor(period);
806 }
807}
808
809namespace {
810

Callers 13

CheckScannerBackpressureFunction · 0.85
TESTFunction · 0.85
TestBackpressureFunction · 0.85
WaitForRunningMethod · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
TEST_PFunction · 0.85
TEST_FFunction · 0.85
AssertStopRequestedMethod · 0.85
TEST_FFunction · 0.85

Calls 1

SleepForFunction · 0.85

Tested by

no test coverage detected