Skip to content

Commit

Permalink
try call AssignWork again when get work failed
Browse files Browse the repository at this point in the history
  • Loading branch information
ZjzMisaka committed Nov 5, 2023
1 parent 456e089 commit 58f0aa9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions PowerThreadPool/Worker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,11 @@ private void AssignWork(PowerPool powerPool)
{
Interlocked.Decrement(ref waitingWorkCount);
}
else
{
AssignWork(powerPool);
return;
}
}

TimeoutOption workTimeoutOption = work.WorkTimeoutOption;
Expand Down

0 comments on commit 58f0aa9

Please sign in to comment.