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)
359
ErrorUtilities.VerifyThrow(
_yieldThreadId
== -1, "Cannot call Yield() while yielding.");
388
ErrorUtilities.VerifyThrow(
_yieldThreadId
!= -1, "Cannot call Reacquire() before Yield().");
389
ErrorUtilities.VerifyThrow(
_yieldThreadId
== Thread.CurrentThread.ManagedThreadId, "Cannot call Reacquire() on thread {0} when Yield() was called on thread {1}", Thread.CurrentThread.ManagedThreadId,
_yieldThreadId
);