| 76 | } |
| 77 | |
| 78 | void 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 | |
| 95 | void BoxedWineCondition::wait(std::unique_lock<std::mutex>& lock) { |
| 96 | KThread* thread = KThread::currentThread(); |
no test coverage detected