Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/System.Private.CoreLib/src/System/Threading/Tasks/ThreadPoolTaskScheduler.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/System.Private.CoreLib/src/System/Threading/Tasks/ThreadPoolTaskScheduler.cs b/src/System.Private.CoreLib/src/System/Threading/Tasks/ThreadPoolTaskScheduler.cs
index 7ac733a29..02c6e0ac3 100644
--- a/src/System.Private.CoreLib/src/System/Threading/Tasks/ThreadPoolTaskScheduler.cs
+++ b/src/System.Private.CoreLib/src/System/Threading/Tasks/ThreadPoolTaskScheduler.cs
@@ -48,7 +48,7 @@ namespace System.Threading.Tasks
task.Id, creatingTask == null ? 0 : creatingTask.Id,
(int)task.Options);
}
-
+#if !WASM
if ((task.Options & TaskCreationOptions.LongRunning) != 0)
{
// Run LongRunning tasks on their own dedicated thread.
@@ -57,6 +57,8 @@ namespace System.Threading.Tasks
thread.Start(task);
}
else
+#endif
+
{
// Normal handling for non-LongRunning tasks.
bool forceToGlobalQueue = ((task.Options & TaskCreationOptions.PreferFairness) != 0);