CSPspEmu.Hle.Modules.ge.sceGe_user.sceGeListSync C# (CSharp) Method

sceGeListSync() private method

private sceGeListSync ( int DisplayListId, SyncTypeEnum SyncType ) : DisplayListStatusEnum
DisplayListId int
SyncType SyncTypeEnum
return DisplayListStatusEnum
        public DisplayListStatusEnum sceGeListSync(int DisplayListId, SyncTypeEnum SyncType)
        {
            var DisplayList = GetDisplayListFromId(DisplayListId);

            switch (SyncType)
            {
                case SyncTypeEnum.WaitForCompletion:
                    ThreadManager.Current.SetWaitAndPrepareWakeUp(HleThread.WaitType.GraphicEngine, "sceGeListSync", DisplayList, (WakeUp) =>
                    {
                        DisplayList.GeListSync(WakeUp);
                    });
                    return 0;
                case SyncTypeEnum.Peek:
                    return DisplayList.PeekStatus();
                default:
                    throw (new SceKernelException(SceKernelErrors.ERROR_INVALID_MODE));
            }
        }