Skip to content

Commit

Permalink
[Build] Forgot to remove two TaskEx
Browse files Browse the repository at this point in the history
  • Loading branch information
xen2 committed Jun 1, 2020
1 parent b857caa commit 66240c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Stride.Core.MicroThreading
public class AsyncAutoResetEvent
{
// Credit: http://blogs.msdn.com/b/pfxteam/archive/2012/02/11/10266923.aspx
private static readonly Task Completed = TaskEx.FromResult(true);
private static readonly Task Completed = Task.FromResult(true);
private readonly Queue<TaskCompletionSource<bool>> waits = new Queue<TaskCompletionSource<bool>>();
private bool signaled;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public override void Post(SendOrPostCallback d, object state)
// in which case we will directly execute the callback to avoid further processing from scheduler.
// Also, note that Wait() sends us event that are supposed to come back into scheduler.
// Note: As it will end up on the callstack, it might be better to Schedule it instead (to avoid overflow)?
// 2/ Otherwise, we just received an external task continuation (i.e. TaskEx.Sleep()), or a microthread triggering another,
// 2/ Otherwise, we just received an external task continuation (i.e. Task.Sleep()), or a microthread triggering another,
// so schedule it so that it comes back in our regular scheduler.
if (microThread.Scheduler.RunningMicroThread == microThread)
{
Expand Down

0 comments on commit 66240c7

Please sign in to comment.