[Mono-dev] Single thread scheduler for Threading.Timers patch
lists at ophion.org
Wed Jun 14 02:20:24 EDT 2006
I forgot to point out that I blogged about this here:
btw, does anyone know what I need to do to add my blog to monologue?
On Tue, 2006-06-13 at 23:04 -0700, Rafael Ferreira wrote:
> The attached patch changes the current Threading.Timer class to use a
> single thread scheduler instead of the current 1 thread per timer logic.
> I also spent a lot of time working on the Timer unit tests so they more
> consistently pass as well as fixing the "NotWorking" tests.
> Some key features include:
> * A single thread handles firing all timer jobs thus allowing a much
> greater number of Timers to be defined - Fixing bug #65734
> * Timer scheduler is only started after the first System.Threading.Timer
> is created (lazy init)
> * Timer scheduler thread dies if there are no more timer jobs in its Job
> queue (early termination)
> * Scheduler can spit out debug info by exporting the MONO_TIMER_DEBUG
> environment variable
> Of course, I don't expect this patch to be accepted without some degree
> of scrutiny so comments/concerns are appreciated and I can commit the
> code once we're all comfortable with it.
> - raf
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
More information about the Mono-devel-list