On Wed, Dec 14, 2005 at 07:11:15PM +0000, Joel Reymont wrote:
> I figure I can have a single timer thread and a timer map keyed on  
> ClockTime. I would try to get the min. key from the map every few  
> seconds, compare it to clock time, fire of the event as needed,  
> remove the timer and repeat.

You don't have to check "every few seconds". You can determine
exactly how much you have to sleep - just check the timeout/event with
the lowest ClockTime.

Best regards
Tomasz

-- 
I am searching for a programmer who is good at least in some of
[Haskell, ML, C++, Linux, FreeBSD, math] for work in Warsaw, Poland
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to