* AsyncResult.cs: don't create the handle if we know the result is
completed.
svn path=/trunk/mcs/; revision=142697
internal IMessage EndInvoke ()
{
+ lock (this) {
+ if (completed)
+ return reply_message;
+ }
+
AsyncWaitHandle.WaitOne ();
return reply_message;
}
+2009-09-27 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+ * AsyncResult.cs: don't create the handle if we know the result is
+ completed.
+
2009-09-12 Gonzalo Paniagua Javier <gonzalo@novell.com>
* AsyncResult.cs: lock when setting the 'completed' field and use the