Re: [QUESTION] How to use interruptible_sleep_on() without races ?

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Fri Apr 05 2002 - 07:58:44 EST


> > could just use completions in that case or you could use
> >
> > wait_event_interruptible(&my_wait_queue, my_condition==FALSE)
> >
> > which is a macro that generates the right stuff.
>
> And it might even want to be defined in include/linux/sched.h

It is 8)

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



This archive was generated by hypermail 2b29 : Sun Apr 07 2002 - 22:00:17 EST