Changes
→Pseudocode
===Pseudocode===
{{c|<pre>Sleepsleep() { 
    Disable Interrupts;
    Add current thread to wait queue;
}</pre>}}
{{c|<pre>Wakewake() {
    AssertTrue (lock held by current thread);
    Disable interrupts;
}</pre>}}
{{c|<pre>WakeAllwakeAll() {
    Disable interrupts;
    While there are threads on the wait queue: