Wait until 'cb_counter_' reaches 'val'.
| 353 | |
| 354 | /// Wait until 'cb_counter_' reaches 'val'. |
| 355 | void WaitForCallbacks(int64_t val) { |
| 356 | unique_lock<mutex> lock(cb_cv_lock_); |
| 357 | while (cb_counter_ < val) cb_cv_.Wait(lock); |
| 358 | } |
| 359 | |
| 360 | /// Implementation of TestScratchLimit. |
| 361 | void TestScratchLimit(bool punch_holes, int64_t alloc_size); |