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

Method lock

valdi/src/valdi/runtime/Context/Context.cpp:427–429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

425}
426
427std::unique_lock<Mutex> Context::lock() const {
428 return std::unique_lock<Mutex>(_mutex);
429}
430
431Ref<ValdiObject> Context::getUserData() const {
432 std::lock_guard<Mutex> guard(_mutex);

Callers 15

TEST_PFunction · 0.45
TEST_PMethod · 0.45
addMockedResponseMethod · 0.45
performRequestMethod · 0.45
makeCompletionMethod · 0.45
cancelMethod · 0.45
updateAllAssetsMethod · 0.45
cancelRequestMethod · 0.45
handleResponseMethod · 0.45
waitForANRMethod · 0.45
downloadItemMethod · 0.45

Calls

no outgoing calls

Tested by 15

TEST_PFunction · 0.36
TEST_PMethod · 0.36
addMockedResponseMethod · 0.36
performRequestMethod · 0.36
makeCompletionMethod · 0.36
cancelMethod · 0.36
updateAllAssetsMethod · 0.36
cancelRequestMethod · 0.36
handleResponseMethod · 0.36
waitForANRMethod · 0.36
downloadItemMethod · 0.36