Skip to content
Browse files

Swap task factory

  • Loading branch information
Eideren authored and xen2 committed Aug 29, 2019
1 parent 55371ea commit b7451e4a8867015f70a1bedf142f815f586bb0f2
Showing with 1 addition and 1 deletion.
  1. +1 −1 sources/core/Xenko.Core/Threading/ThreadPool.cs
@@ -72,7 +72,7 @@ public void QueueWorkItem([NotNull] [Pooled] Action workItem)
// No point in wasting spins on the lock while creating the task
if (startNewTask)
Task.Factory.StartNew(cachedTaskLoop, null, TaskCreationOptions.LongRunning);
new Task(cachedTaskLoop, null, TaskCreationOptions.LongRunning).Start();

0 comments on commit b7451e4

Please sign in to comment.
You can’t perform that action at this time.