lkml.org 
[lkml]   [1999]   [Oct]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Wait in kernel threads
Date
> 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/

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.039 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site