Messages in this thread | | | Date | Wed, 9 Jun 1999 15:41:11 -0700 (PDT) | From | "B. James Phillippe" <> | Subject | Re: 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/
| |