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

Method notify

valdi/src/valdi/runtime/Utils/AsyncGroup.cpp:56–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56void AsyncGroup::notify(DispatchFunction function) {
57 std::unique_lock<Mutex> guard(_mutex);
58 if (_enterCount == 0) {
59 guard.unlock();
60 function();
61 return;
62 }
63
64 lockFreeEnqueueFunction(std::move(function));
65}
66
67void AsyncGroup::blockingWait() {
68 std::unique_lock<Mutex> guard(_mutex);

Callers 6

chunk-vendors.jsFile · 0.45
defineReactive$$1Function · 0.45
setFunction · 0.45
delFunction · 0.45
unloadUnusedModulesMethod · 0.45
flushAnimationsMethod · 0.45

Calls 1

unlockMethod · 0.45

Tested by

no test coverage detected