>>What's wrong with sleep_on? What is the appropriate macro?
> 
> 
> sleep_on has a race condition by design, you may loose the wake up
> and there's nothing you can do about it. There's a risk of becoming
> a sleeping beauty.
> Use wait_event instead.

Or better yet, use the <linux/completion.h> primitives and
call wait_for_completion() ... if your event model allows.







-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to