CSPspEmu.Hle.HleThread.HleThread C# (CSharp) Method

HleThread() public method

public HleThread ( InjectContext InjectContext, CpuThreadState CpuThreadState ) : System
InjectContext InjectContext
CpuThreadState CSPspEmu.Core.Cpu.CpuThreadState
return System
        public HleThread(InjectContext InjectContext, CpuThreadState CpuThreadState)
        {
            InjectContext.InjectDependencesTo(this);
            //this.PspConfig = CpuThreadState.CpuProcessor.CpuConfig;

            if (this.HleConfig.UseCoRoutines)
            {
                this.Coroutine = HleThreadManager.CoroutinePool.CreateCoroutine(this.Name, MainLoop);
            }
            else
            {
                this.GreenThread = new GreenThread();
                GreenThread.InitAndStartStopped(MainLoop);
            }

            this.CpuThreadState = CpuThreadState;
        }