Messages in this thread | | | From | manfreds@colorful ... | Subject | Re: Wait in kernel threads | Date | Sat, 23 Oct 1999 14:30:37 -0400 (EDT) |
| |
> I use this to implement the wait function: > > void wait_func(int t) > { > unsigned long j; > > j=jiffies+t*HZ/100; > while(jiffies<j) > schedule(); > } > There is are special sleep_on_timeout() and schedule_timeout() functions.
-- Manfred
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |