Messages in this thread |  | | | Subject | Re: wait_for_completion_timeout problem ??? | | From | Eli Cohen <> | | Date | Thu, 01 Mar 2007 18:05:50 +0200 |
| |
On Thu, 2007-03-01 at 15:28 +0100, Dmitry Adamushko wrote:
> So either all the users of wait_for_completion_timeout() should > additionally check for x->done after they got scheduled > > or > > wait_for_completion_timeout() should return something different that > encodes the fact /event happened/ and not just /event happened _and_ a > caller has got scheduled back earlier than timeout. >
The second suggestion makes sense to me more and is more portable then the first one.
- 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/
|  |