31 |
void |
void |
32 |
ipc_tqueue_enqueue (struct ipc_tqueue *itq, struct thread *th) |
ipc_tqueue_enqueue (struct ipc_tqueue *itq, struct thread *th) |
33 |
{ |
{ |
34 |
|
SPL_T spl; |
35 |
|
|
36 |
|
spl = SPLOFF (); |
37 |
thread_lock (th); |
thread_lock (th); |
38 |
queue_enter (&itq->queue, th, struct thread *, ipcq); |
queue_enter (&itq->queue, th, struct thread *, ipcq); |
39 |
thread_unlock (th); |
thread_unlock (th); |
40 |
|
SPLON (spl); |
41 |
} |
} |
42 |
|
|
43 |
/* Dequeue thread from thread queue ITQ. Returning it. */ |
/* Dequeue thread from thread queue ITQ. Returning it. */ |