[Mono-devel-list] Patch for Thread.GetNamedDataSlot
Sébastien Robitaille
sebastien.robitaille at croesus.com
Wed Jul 14 21:14:15 EDT 2004
Hi,
here is another patch to review.
The problem: Thread.GetNamedDataSlot is not thread-safe. There is an exception thrown if multiple threads are calling this method at
the same time.
The exception is also thrown when using Remoting with multiple threads
(because GetNamedDataSlot is used by
System.Runtime.Remoting.Messaging.CallContext:SetCurrentCallContext)
The proposed patch was also added to the bug report #61582 in the "diff -u" format :-)
Regards
Sébas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Thread.cs.patch
Type: application/octet-stream
Size: 958 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040714/ba1d4382/attachment.obj
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: GetNamedDataSlotTest.cs
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040714/ba1d4382/attachment.pl
More information about the Mono-devel-list
mailing list