lkml.org 
[lkml]   [1999]   [Jun]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: adding to wait queue
On Mon, 7 Jun 1999, Raj, Ashok wrote:

> Have a silly question.
>
> when i add to wait_queue() should i need a spinlock around it in a MP
> system? or

The source for <linux/sched.h> defines __add_wait_queue and add_wait_queue;
the former does no locking and the latter does an IRQ writelock. Just use
the latter if you need locking.

-bp
--
# bryan at terran dot org
# http://www.terran.org/~bryan


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.032 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site