Implemented fast version of ThreadLocal<T>.
[mono.git] / mcs / class / corlib / System.Threading / CancellationTokenSource.cs
index 05ca53a182f1f85e389adf6278282b35e0ff1e0c..1d9411fb2c7fa7687f326e6bde25027fe7c30088 100644 (file)
@@ -24,7 +24,7 @@
 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 // THE SOFTWARE.
 
-#if NET_4_0 || BOOTSTRAP_NET_4_0
+#if NET_4_0 || MOBILE
 using System;
 using System.Collections.Generic;
 
@@ -53,18 +53,18 @@ namespace System.Threading
                }
                
                // If parameter is true we throw exception as soon as they appear otherwise we aggregate them
-               public void Cancel (bool throwOnFirst)
+               public void Cancel (bool throwOnFirstException)
                {
                        canceled = true;
                        handle.Set ();
                        
                        List<Exception> exceptions = null;
-                       if (!throwOnFirst)
+                       if (!throwOnFirstException)
                                exceptions = new List<Exception> ();
                        
                        lock (callbacks) {
                                foreach (KeyValuePair<CancellationTokenRegistration, Action> item in callbacks) {
-                                       if (throwOnFirst) {
+                                       if (throwOnFirstException) {
                                                item.Value ();
                                        } else {
                                                try {