MCPcopy Create free account
hub / github.com/Snapchat/Valdi / flushRenderRequests

Method flushRenderRequests

valdi/src/valdi/runtime/Context/Context.cpp:289–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287}
288
289bool Context::flushRenderRequests() {
290 bool didFlush = false;
291 std::unique_lock<Mutex> guard(_mutex);
292 while (!_pendingRenderRequests.empty()) {
293 runNextPendingRenderRequest(guard);
294 guard.lock();
295 didFlush = true;
296 }
297
298 return didFlush;
299}
300
301bool Context::hasPendingRenderRequests() const {
302 std::lock_guard<Mutex> guard(_mutex);

Callers 1

setAutoRenderDisabledMethod · 0.80

Calls 2

emptyMethod · 0.45
lockMethod · 0.45

Tested by

no test coverage detected