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

sceGeDrawSync() private method

private sceGeDrawSync ( SyncTypeEnum SyncType ) : DisplayListStatusEnum
SyncType SyncTypeEnum
return DisplayListStatusEnum
        public DisplayListStatusEnum sceGeDrawSync(SyncTypeEnum SyncType)
        {
            //Thread.Sleep(40);
            switch (SyncType)
            {
                case SyncTypeEnum.WaitForCompletion:
                    ThreadManager.Current.SetWaitAndPrepareWakeUp(HleThread.WaitType.GraphicEngine, "sceGeDrawSync", GpuProcessor, (WakeUp) =>
                    {
                        GpuProcessor.GeDrawSync(WakeUp);
                    });
                    return 0;
                case SyncTypeEnum.Peek:
                    return GpuProcessor.PeekStatus();
                default:
                    throw (new SceKernelException(SceKernelErrors.ERROR_INVALID_MODE));
            }
        }