wait_event_interruptible with timeout
Hello,
My kernel is 2.4.27. I would like to wait with timeout until a conditon is met. May I do it in this way?
j = jiffies + delay * HZ;
wait_event_interruptible(my_queue, (my_condition || jiffies > j))?
I suspose that it's a bad solution. What's the better one?
lordofring
|