[Mono-bugs] [Bug 77280][Cri] Changed - Mono does not fire events properly from different threads

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jan 19 18:47:50 EST 2006

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by psingh at fnfr.com.


--- shadow/77280	2006-01-19 12:40:21.000000000 -0500
+++ shadow/77280.tmp.4399	2006-01-19 18:47:50.000000000 -0500
@@ -83,6 +83,18 @@
 function callback may not be threadsafe because that is user code.
 So after adding the lock, the code works on Mono/Linux. But on Windows
 it works without locks because according to c# specs, + and -
 operation on an event and event invocations are threadsafe. So it
 would seem like a Mono implementation issue.
+------- Additional Comments From psingh at fnfr.com  2006-01-19 18:47 -------
+Here is the MSDN link
+Here is the paragraph content:
+Notice that both the add and remove methods have a MethodImplAttribute
+attribute applied to them. More specifically, these methods are marked
+as synchronized, making them thread-safe: multiple listeners may
+register or unregister themselves with the event at the same time, but
+the linked list will not become corrupted.

More information about the mono-bugs mailing list