Author: zoltan
Date: 2005-11-23 16:32:48 -0500 (Wed, 23 Nov 2005)
New Revision: 53409
Modified:
trunk/mcs/class/corlib/System.Threading/ChangeLog
trunk/mcs/class/corlib/System.Threading/Interlocked.cs
Log:
2005-11-23 Zoltan Varga <[EMAIL PROTECTED]>
* Interlocked.cs: Add T:class constraint to the generic
CompareExchange and Exchange methods.
Modified: trunk/mcs/class/corlib/System.Threading/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Threading/ChangeLog 2005-11-23 21:08:25 UTC
(rev 53408)
+++ trunk/mcs/class/corlib/System.Threading/ChangeLog 2005-11-23 21:32:48 UTC
(rev 53409)
@@ -1,3 +1,8 @@
+2005-11-23 Zoltan Varga <[EMAIL PROTECTED]>
+
+ * Interlocked.cs: Add T:class constraint to the generic
+ CompareExchange and Exchange methods.
+
2005-11-17 Zoltan Varga <[EMAIL PROTECTED]>
* Interlocked.cs: Add generic CompareExchange and Exchange methods.
Modified: trunk/mcs/class/corlib/System.Threading/Interlocked.cs
===================================================================
--- trunk/mcs/class/corlib/System.Threading/Interlocked.cs 2005-11-23
21:08:25 UTC (rev 53408)
+++ trunk/mcs/class/corlib/System.Threading/Interlocked.cs 2005-11-23
21:32:48 UTC (rev 53409)
@@ -115,7 +115,7 @@
[ComVisible (false)]
[MethodImplAttribute(MethodImplOptions.InternalCall)]
- public extern static T CompareExchange<T> (ref T location, T
value, T comparand);
+ public extern static T CompareExchange<T> (ref T location, T
value, T comparand) where T:class;
[MethodImplAttribute(MethodImplOptions.InternalCall)]
public extern static long Exchange(ref long location1, long
value);
@@ -129,7 +129,7 @@
[ComVisible (false)]
[MethodImplAttribute(MethodImplOptions.InternalCall)]
- public extern static T Exchange<T> (ref T location1, T value);
+ public extern static T Exchange<T> (ref T location1, T value)
where T:class;
[MethodImplAttribute(MethodImplOptions.InternalCall)]
public extern static long Read(ref long location1);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches