[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fri, 5 Oct 2001 17:27:05 +0200
On Thu, Oct 04, 2001 at 04:39:15PM -0000, kurian kattukaren wrote:
> >>"kurian kattukaren" <email@example.com> writes:
> >> Will this do for schedule_timeout().
> >BSG replied:
> >It's not the best way.
> >The "canonical" way to write timeout-like functions is >to keep track of a
> >queue of timout requests, and have a >thread whose job is to sleep until the
> >top item in the >queue is ready, and then call its function.
> Any info on how to accomplish the above , along with links to thread
> tutorials are also welcome.
> thanking you,
> kurian joseph
> "knowledge shared spreads geometrically"
The Linux timer emulation code you used already does this
(pfinet/timer-emul.c). If this is not what Thomas meant, I don't know what
else it could be.
`Rhubarb is no Egyptian god.' Debian http://www.debian.org firstname.lastname@example.org
Marcus Brinkmann GNU http://www.gnu.org email@example.com
- threads!, kurian kattukaren, 2001/10/04
- Re: threads!,
Marcus Brinkmann <=