[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 12:40:21 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.

http://bugzilla.ximian.com/show_bug.cgi?id=77280

--- shadow/77280	2006-01-19 08:13:21.000000000 -0500
+++ shadow/77280.tmp.767	2006-01-19 12:40:21.000000000 -0500
@@ -73,6 +73,16 @@
 -Pawan
 
 ------- Additional Comments From vargaz at gmail.com  2006-01-19 08:13 -------
 You have to lock the invocation of the event too with the same lock
 since it accesses the same data.
 
+
+------- Additional Comments From psingh at fnfr.com  2006-01-19 12:40 -------
+I just checked the c# spec. + and - operations on an event are
+supposed to be threadsafe as well as the event invocation. The
+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.


More information about the mono-bugs mailing list