2 writes to _yieldThreadId
Microsoft.Build (2)
BackEnd\Components\RequestBuilder\TaskHost.cs (2)
360_yieldThreadId = Thread.CurrentThread.ManagedThreadId; 394_yieldThreadId = -1;
4 references to _yieldThreadId
Microsoft.Build (4)
BackEnd\Components\RequestBuilder\TaskHost.cs (4)
359ErrorUtilities.VerifyThrow(_yieldThreadId == -1, "Cannot call Yield() while yielding."); 388ErrorUtilities.VerifyThrow(_yieldThreadId != -1, "Cannot call Reacquire() before Yield()."); 389ErrorUtilities.VerifyThrow(_yieldThreadId == Thread.CurrentThread.ManagedThreadId, "Cannot call Reacquire() on thread {0} when Yield() was called on thread {1}", Thread.CurrentThread.ManagedThreadId, _yieldThreadId);