svn path=/trunk/mcs/; revision=95259
+2008-02-08 Jonathan Pryor <jpryor@novell.com>
+
+ * UnixSignal.cs: Modification of Info->count should be thread safe.
+
2008-01-28 Jonathan Pryor <jpryor@novell.com>
* UnixSignal.cs: Added; Polling and blocking based Unix signal mechanism.
public unsafe bool Reset ()
{
- int n = Info->count;
- Info->count = 0;
+ int n = Interlocked.Exchange (ref Info->count, 0);
return n != 0;
}
public unsafe int Count {
get {return Info->count;}
- set {Info->count = value;}
+ set {Interlocked.Exchange (ref Info->count, value);}
}
[Map]