update cache system

移除ThreadSyncContext类
This commit is contained in:
何冠峰
2024-12-31 10:16:20 +08:00
parent 51b688bbdd
commit 769134eaf9
5 changed files with 24 additions and 69 deletions
@@ -40,7 +40,8 @@ namespace YooAsset
if (_steps == ESteps.VerifyFile)
{
if (BeginVerifyFileWithThread(_element))
bool succeed = ThreadPool.QueueUserWorkItem(new WaitCallback(VerifyInThread), _element);
if (succeed)
{
_steps = ESteps.Waiting;
}
@@ -77,10 +78,6 @@ namespace YooAsset
}
}
private bool BeginVerifyFileWithThread(TempFileElement element)
{
return ThreadPool.QueueUserWorkItem(new WaitCallback(VerifyInThread), element);
}
private void VerifyInThread(object obj)
{
TempFileElement element = (TempFileElement)obj;