On Sad, 2006-01-07 at 15:21 -0800, Pete Zaitcev wrote: > On Sat, 07 Jan 2006 23:11:07 +0000, Alan Cox <[EMAIL PROTECTED]> wrote: > > > wait_event(tty_ldisc_wait, tty_ldisc_try(tty)); > > That is more or less all right, I agree. It is still somewhat limited > because the lock cannot be held across the loop into its body, so > actions cannot be taken atomically with the condition.
If that is the needed case you do something like wait_event(foo_wait, foo_and_lock(foo)); blah unlock(foo) Alan ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel