more changes to smartthreadpool

This commit is contained in:
UbitUmarov
2021-01-13 16:23:49 +00:00
parent ec56517c7c
commit 1db6a541bd
5 changed files with 55 additions and 91 deletions

View File

@@ -987,6 +987,12 @@ namespace Amib.Threading.Internal
_callerContext = null;
}
if(_workItemCompleted != null)
{
_workItemCompleted.Dispose();
_workItemCompleted = null;
}
if (_workItemInfo.DisposeOfStateObjects)
{
IDisposable disp = _state as IDisposable;