lkml.org 
[lkml]   [1999]   [Jun]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: timeout in task struct...
On Wed, 9 Jun 1999, Raj, Ashok wrote:

> Hi
>
> For short delays in threads, earlier one was able to use
>
> current->timeout = x;
> current->state = TASK_INTERRUPTIBLE;
> schedule();
> current->timeout = 0;
>
> in 2.2.5 kernel looks like this field has disappeared. should we have to

The new method for this is:

current->state = TASK_INTERRUPTIBLE;
schedule_timeout(timeout);

See schedule_timeout in kernel/sched.c

-bp
--
# bryan at terran dot org
# http://www.terran.org/~bryan


-
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:52    [W:0.045 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site