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

Method acquireLock

valdi/src/valdi/runtime/Resources/AssetsManagerTransaction.cpp:23–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23void AssetsManagerTransaction::acquireLock() {
24 if (!_lock.owns_lock()) {
25 _lock.lock();
26 }
27}
28
29void AssetsManagerTransaction::enqueueUpdate(const AssetKey& assetKey) {
30 _updates.emplace_back(assetKey);

Callers 2

notifyAssetConsumerMethod · 0.80
performUpdatesMethod · 0.80

Calls 1

lockMethod · 0.45

Tested by

no test coverage detected