lkml.org 
[lkml]   [1999]   [Aug]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] possible SMP races all over the place in wait_event


On Tue, 17 Aug 1999, Alan Cox wrote:
>
> set_task_state(curremt, TASK_INTERRUPTIBLE) as a macro would be a lot nicer ?

Actually, as you can never set the state of another process, it would be
fine to just have

set_state(TASK_INTERRUPTIBLE);

instead.

However, often the mb()'s really aren't needed due to being implicit in
something else you do, so I don't know..

Linus


-
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:53    [W:0.391 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site