MCPcopy Create free account
hub / github.com/apitrace/apitrace / commitAllWrites

Method commitAllWrites

wrappers/glmemshadow.cpp:407–418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405}
406
407void GLMemoryShadow::commitAllWrites(gltrace::Context *_ctx, Callback callback)
408{
409 if (!_ctx->sharedRes->dirtyShadows.empty()) {
410 std::unique_lock<std::mutex> lock(mutex);
411
412 for (GLMemoryShadow *memoryShadow : _ctx->sharedRes->dirtyShadows) {
413 memoryShadow->commitWrites(callback);
414 }
415
416 _ctx->sharedRes->dirtyShadows.clear();
417 }
418}
419
420void GLMemoryShadow::syncAllForReads(gltrace::Context *_ctx)
421{

Callers

nothing calls this directly

Calls 3

commitWritesMethod · 0.80
clearMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected