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

Function BusyWait

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

Source from the content-addressed store, hash-verified

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

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