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

Method leaveIfNotCompleted

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

Source from the content-addressed store, hash-verified

25}
26
27bool AsyncGroup::leaveIfNotCompleted() {
28 std::unique_lock<Mutex> guard(_mutex);
29 if (_enterCount == 0) {
30 return false;
31 }
32
33 doLeave(guard);
34 return true;
35}
36
37void AsyncGroup::doLeave(std::unique_lock<Mutex>& guard) {
38 SC_ASSERT(_enterCount > 0, "Unbalanced enter(), leave() calls");

Callers 2

postInitMethod · 0.80
teardownMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected