[Mono-dev] mono timer exception

Sean Dague sean at dague.net
Wed Apr 16 06:59:20 EDT 2008

On Wed, Apr 16, 2008 at 10:15:07AM +0200, Robert Jordan wrote:
> Sean Dague wrote:
> > I read through the Timer code, and am starting to wonder if Timers
> > themselves aren't thread safe to manipulate, and if that is the crux of
> > our problem.
> See http://msdn2.microsoft.com/en-us/library/system.timers.timer.aspx
> The class is not thread safe.

Ok, thanks.  That clarification helps a lot.  The MS implementation
appears to be thread safe (or at least has a much smaller race window)
than the Mono implementation.  We were previously treating the .Enabled
property as being thread safe, which is probably a huge source of grief.

Will get to fixing that in our source.  Thanks much.



Sean Dague                                       Mid-Hudson Valley
sean at dague dot net                            Linux Users Group
http://dague.net                                 http://mhvlug.org

There is no silver bullet.  Plus, werewolves make better neighbors
than zombies, and they tend to keep the vampire population down.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080416/6e510871/attachment.bin 

More information about the Mono-devel-list mailing list