Rewrite scheduler context switch code (#1786)
* Rewrite scheduler context switch code * Fix race in UnmapIpcRestorePermission * Fix thread exit issue that could leave the scheduler in a invalid state * Change context switch method to not wait on guest thread, remove spin wait, use SignalAndWait to pass control * Remove multi-core setting (it is always on now) * Re-enable assert * Remove multicore from default config and schema * Fix race in KTimeManager
This commit is contained in:
@ -236,7 +236,7 @@ namespace Ryujinx.HLE.HOS.Kernel.Process
|
||||
{
|
||||
if (handle == SelfThreadHandle)
|
||||
{
|
||||
return _context.Scheduler.GetCurrentThread();
|
||||
return KernelStatic.GetCurrentThread();
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -248,7 +248,7 @@ namespace Ryujinx.HLE.HOS.Kernel.Process
|
||||
{
|
||||
if (handle == SelfProcessHandle)
|
||||
{
|
||||
return _context.Scheduler.GetCurrentProcess();
|
||||
return KernelStatic.GetCurrentProcess();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user