* AsyncResult.cs: lock when setting the 'completed' field and use the
property instead of the 'handle' field.
svn path=/trunk/mcs/; revision=141860
internal IMessage EndInvoke ()
{
- handle.WaitOne ();
+ AsyncWaitHandle.WaitOne ();
return reply_message;
}
{
reply_message = msg;
- completed = true;
- NativeEventCalls.SetEvent_internal (handle.Handle);
+ lock (this) {
+ completed = true;
+ ((ManualResetEvent) AsyncWaitHandle).Set ();
+ }
- if (async_callback != null)
- {
+ if (async_callback != null) {
AsyncCallback ac = (AsyncCallback) async_callback;
ac (this);
}
+2009-09-12 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+ * AsyncResult.cs: lock when setting the 'completed' field and use the
+ property instead of the 'handle' field.
+
2008-11-10 Gonzalo Paniagua Javier <gonzalo@novell.com>
* CADMessages.cs: when the method is generic, return a constructed