[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: schedule_timeout()

From: Marcus Brinkmann
Subject: Re: schedule_timeout()
Date: Mon, 15 Oct 2001 01:43:52 +0200
User-agent: Mutt/1.3.22i

On Thu, Aug 30, 2001 at 07:45:37PM -0000, kurian  kattukaren wrote:
> >> thread_t current = mach_current_thread();
> >> int long schedule_timeout(long int timeout)

> void process_timeout(unsingned long data)



I checked in a similar implementation that works correctly, and also uses
interruptible_sleep_on a wait queue, so that the call can be interrupted
(the problem with thread_suspend/thread_resume is that it is interruptible).

I think the implementation works fine, but I only did basic testing.  If
there is any problem with it, let us know.


2001-10-14  Marcus Brinkmann  <marcus@gnu.org>

        * glue-include/linux/sched.h (process_schedule_timeout): New
        function used as timer callback for schedule_timeout.
        (schedule_timeout): Implement it.
        Suggested by "kurian kattukaren" <kjk_bugs@rediffmail.com>.

`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann              GNU    http://www.gnu.org    marcus@gnu.org

reply via email to

[Prev in Thread] Current Thread [Next in Thread]