[PATCH] [2.4] add wait_event_interruptible_timeout

From: Solomon Peachy (solomon@linux-wlan.com)
Date: Fri Sep 20 2002 - 08:45:34 EST

The sleep_on* series of calls is unsafe, and prone to race conditions.
They've been unofficially deprecated for a while. Instead, we're
supposed to use the wait_event* series of calls.

There's only one problem with this. There's no equivalent of

So, the attached patch adds 'wait_event_timeout' and
'wait_event_interruptible_timeout' The diff is generated against
2.4.20-pre7, but should apply cleanly to just about any 2.4/2.2 release,
and maybe even 2.5 as well.

Back to the bit mines..

 - Pizza

Solomon Peachy                        solomon@linux-wlan.com
AbsoluteValue Systems                 http://www.linux-wlan.com
715-D North Drive                     +1 (321) 259-0737  (office)
Melbourne, FL 32934                   +1 (321) 259-0286  (fax)

- 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 : Mon Sep 23 2002 - 22:00:30 EST