RemoveLock() public static method

移除锁定
public static RemoveLock ( int hashkey ) : void
hashkey int
return void
Exemplo n.º 1
0
        protected static void LoadAssetComplate(CRequest req)
        {
                        #if HUGULA_LOADER_DEBUG
            Debug.LogFormat(" 6. <color=yellow>LoadAssetComplate Req(assetname={0},url={1}) frameCount{2}</color>", req.assetName, req.url, Time.frameCount);
                        #endif
            if (req.isShared)
            {
                CountMananger.Add(req.keyHashCode);
                CountMananger.AddDependencies(req.keyHashCode);
                if (_instance && _instance.OnSharedComplete != null)
                {
                    _instance.OnSharedComplete(req);
                }

                CacheManager.SetAssetLoaded(req.keyHashCode);
                if (req.pool)
                {
                    LRequestPool.Release(req);
                }
            }
            else
            {
                if (req.assetBundleRequest != null)
                {
                    CacheManager.RemoveLock(req.keyHashCode);
                }
                req.DispatchComplete();
                PopGroup(req);
            }
            BeginQueue();
            CheckAllComplete();
        }
Exemplo n.º 2
0
        private static void DispatchReqComplete(CRequest reqitem)
        {
            if (reqitem.isShared)
            {
                CountMananger.Add(reqitem.keyHashCode);
                CountMananger.AddDependencies(reqitem.keyHashCode);
                if (_instance && _instance.OnSharedComplete != null)
                {
                    _instance.OnSharedComplete(reqitem);
                }

                CacheManager.SetAssetLoaded(reqitem.keyHashCode);
                if (reqitem.pool)
                {
                    LRequestPool.Release(reqitem);
                }
            }
            else
            {
                if (reqitem.assetBundleRequest != null)
                {
                    CacheManager.RemoveLock(reqitem.keyHashCode);
                }
                reqitem.DispatchComplete();
                PopGroup(reqitem);
            }
        }