MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / removeParentCondition

Method removeParentCondition

source/util/synchronization.cpp:168–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168void BoxedWineCondition::removeParentCondition(const std::shared_ptr<BoxedWineCondition>& parent) {
169 const std::lock_guard<std::mutex> lock(parentsMutex);
170 for (int i = 0; i < MAX_PARENTS; i++) {
171 std::shared_ptr<BoxedWineCondition> p = parents[i].lock();
172 if (p == parent) {
173 parents[i].reset();
174 parentCount--;
175 }
176 }
177}
178
179U32 BoxedWineCondition::parentsCount() {
180 const std::lock_guard<std::mutex> lock(parentsMutex);

Callers

nothing calls this directly

Calls 2

lockMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected