Implemented fast version of ThreadLocal<T>.
[mono.git] / mcs / class / corlib / System.Threading / AtomicBoolean.cs
index e50934e7412af66363f5e6fdcfcc9cf9329e09dd..28faf014b29351a105b14c8af4d845bd6a576efd 100644 (file)
 
 using System;
 
+#if INSIDE_MONO_PARALLEL
+using System.Threading;
+
+namespace Mono.Threading
+#else
 namespace System.Threading
+#endif
 {
-       internal struct AtomicBooleanValue
+#if INSIDE_MONO_PARALLEL
+       public
+#endif
+       struct AtomicBooleanValue
        {
                int flag;
                const int UnSet = 0;
@@ -99,7 +108,10 @@ namespace System.Threading
                }
        }
 
-       internal class AtomicBoolean
+#if INSIDE_MONO_PARALLEL
+       public
+#endif
+       class AtomicBoolean
        {
                int flag;
                const int UnSet = 0;