Changes
→Pseudocode
AssertTrue (lock held by current thread);
Disable interrupts;
If there is a thread on the wait queue, remove : Remove the first thread and wake it;
Re-enable interrupts;
}</pre>}}
{{c|<pre>WakeAll() {
Disable interrupts;
While there are threads on the wait queue, call : Remove the first thread and wake().it;
Re-enable interrupts;
}</pre>}}