Somewhat better implementation of thread yield

This commit is contained in:
gdkchan 2018-06-09 18:19:14 -03:00
parent 7f5a8effbb
commit aa75957ce2
4 changed files with 32 additions and 22 deletions

View file

@ -206,7 +206,7 @@ namespace Ryujinx.Core.OsHle.Kernel
{
lock (Process.ThreadSyncLock)
{
//This is the new thread that will not own the mutex.
//This is the new thread that will now own the mutex.
//If no threads are waiting for the lock, then it should be null.
KThread OwnerThread = PopThread(CurrThread.MutexWaiters, x => x.MutexAddress == MutexAddress);