* (interruptible_)sleep_on_timeout question
@ 2002-05-24 2:25 Xiaogeng (Shawn) Jin
0 siblings, 0 replies; only message in thread
From: Xiaogeng (Shawn) Jin @ 2002-05-24 2:25 UTC (permalink / raw)
To: linuxppc-embedded
Hi,
Is it possible to dynamically change the timeout value of
sleep_on_timeout()? I encountered a situation where the timeout value is
got from some interrupt handler, which will modify the value. For example,
main() {
/* the main process goes to sleep with a timeout */
....
interruptible_sleep_on_timeout(q, timeout);
....
}
int_handler() {
/* If the interrupt happens before timeout, the handler
* gets a new timeout value and makes the main process
* continue to sleep.
*/
}
Is it possible to implement this mechanism? I thought about kernel timer
and variation of sleep_on_timeout(). But all seems to have some problems.
Thanks a lot.
Shawn.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-05-24 2:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-24 2:25 (interruptible_)sleep_on_timeout question Xiaogeng (Shawn) Jin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).