/[rtmk]/rtmk/ipc-tqueue.c
ViewVC logotype

Diff of /rtmk/ipc-tqueue.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by jrydberg, Thu Dec 13 02:09:38 2001 UTC revision 1.3 by jrydberg, Tue Jan 29 18:31:45 2002 UTC
# Line 31  ipc_tqueue_init (struct ipc_tqueue *itq) Line 31  ipc_tqueue_init (struct ipc_tqueue *itq)
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.  */

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26