Subversion Repositories HelenOS

Rev

Rev 2089 | Rev 2183 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2089 Rev 2109
Line 40... Line 40...
40
#include <proc/task.h>
40
#include <proc/task.h>
41
#include <proc/uarg.h>
41
#include <proc/uarg.h>
42
#include <mm/as.h>
42
#include <mm/as.h>
43
#include <mm/slab.h>
43
#include <mm/slab.h>
44
#include <synch/spinlock.h>
44
#include <synch/spinlock.h>
-
 
45
#include <synch/waitq.h>
45
#include <arch.h>
46
#include <arch.h>
46
#include <panic.h>
47
#include <panic.h>
47
#include <adt/btree.h>
48
#include <adt/btree.h>
48
#include <adt/list.h>
49
#include <adt/list.h>
49
#include <ipc/ipc.h>
50
#include <ipc/ipc.h>
Line 361... Line 362...
361
        if (thr->state == Sleeping)
362
        if (thr->state == Sleeping)
362
            sleeping = true;
363
            sleeping = true;
363
        spinlock_unlock(&thr->lock);
364
        spinlock_unlock(&thr->lock);
364
       
365
       
365
        if (sleeping)
366
        if (sleeping)
366
            thread_interrupt_sleep(thr);
367
            waitq_interrupt_sleep(thr);
367
    }
368
    }
368
   
369
   
369
    spinlock_unlock(&ta->lock);
370
    spinlock_unlock(&ta->lock);
370
    interrupts_restore(ipl);
371
    interrupts_restore(ipl);
371
   
372