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

Method signalAll

source/util/synchronization.cpp:78–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78void BoxedWineCondition::signalAll() {
79 if (parentCount) {
80 for (int i = 0; i < MAX_PARENTS; i++) {
81 std::shared_ptr<BoxedWineCondition> parent;
82 {
83 const std::lock_guard<std::mutex> lock(parentsMutex);
84 parent = parents[i].lock();
85 }
86 if (parent) {
87 BOXEDWINE_CRITICAL_SECTION_WITH_CONDITION(parent);
88 parent->signalAll();
89 }
90 }
91 }
92 this->c.notify_all();
93}
94
95void BoxedWineCondition::wait(std::unique_lock<std::mutex>& lock) {
96 KThread* thread = KThread::currentThread();

Callers 3

runSignalMethod · 0.80
waitMethod · 0.80
waitWithTimeoutMethod · 0.80

Calls 2

signalThreadMethod · 0.95
lockMethod · 0.45

Tested by

no test coverage detected