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

Function BusyWait

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

Source from the content-addressed store, hash-verified

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

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