Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
rename utility method to ShouldExitWorker
  • Loading branch information
lambdageek committed Apr 18, 2023
commit b30ca89d4ce0e07c4defeb76e9671672b9e89a50
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private static void WorkerThreadStart()
WorkerDoWork(threadPoolInstance, ref spinWait);
}

if (WorkerTimedOutMaybeStop(threadPoolInstance, threadAdjustmentLock))
if (ShouldExitWorker(threadPoolInstance, threadAdjustmentLock))
{
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ private static void WorkerDoWork(PortableThreadPool threadPoolInstance, ref bool
// returns true if the worker is shutting down
// returns false if we should do another iteration
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private static bool WorkerTimedOutMaybeStop (PortableThreadPool threadPoolInstance, LowLevelLock threadAdjustmentLock)
private static bool ShouldExitWorker (PortableThreadPool threadPoolInstance, LowLevelLock threadAdjustmentLock)
{
// The thread cannot exit if it has IO pending, otherwise the IO may be canceled
if (IsIOPending)
Expand Down