mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-01-11 20:10:38 +00:00
Fix kaddressarbiter crash (ryubing/ryujinx!235)
Some checks failed
Canary release job / Release for linux-arm64 (push) Has been cancelled
Canary release job / Release for linux-x64 (push) Has been cancelled
Canary release job / Release for win-x64 (push) Has been cancelled
Canary release job / Release MacOS universal (push) Has been cancelled
Canary release job / Create GitLab Release (push) Has been cancelled
Some checks failed
Canary release job / Release for linux-arm64 (push) Has been cancelled
Canary release job / Release for linux-x64 (push) Has been cancelled
Canary release job / Release for win-x64 (push) Has been cancelled
Canary release job / Release MacOS universal (push) Has been cancelled
Canary release job / Create GitLab Release (push) Has been cancelled
See merge request ryubing/ryujinx!235
This commit is contained in:
parent
c3155fcadb
commit
3a593b6084
2 changed files with 8 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -100,6 +100,7 @@ DocProject/Help/html
|
||||||
|
|
||||||
# Click-Once directory
|
# Click-Once directory
|
||||||
publish/
|
publish/
|
||||||
|
RyubingMaintainerTools/
|
||||||
|
|
||||||
# Publish Web Output
|
# Publish Web Output
|
||||||
*.Publish.xml
|
*.Publish.xml
|
||||||
|
|
|
||||||
|
|
@ -529,7 +529,13 @@ namespace Ryujinx.HLE.HOS.Kernel.Threading
|
||||||
// The value is decremented if the number of threads waiting is less
|
// The value is decremented if the number of threads waiting is less
|
||||||
// or equal to the Count of threads to be signaled, or Count is zero
|
// or equal to the Count of threads to be signaled, or Count is zero
|
||||||
// or negative. It is incremented if there are no threads waiting.
|
// or negative. It is incremented if there are no threads waiting.
|
||||||
int waitingCount = _arbiterThreads[address].Count;
|
int waitingCount = 0;
|
||||||
|
|
||||||
|
if (_arbiterThreads.TryGetValue(address, out List<KThread> threads))
|
||||||
|
{
|
||||||
|
waitingCount = threads.Count;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (waitingCount > 0)
|
if (waitingCount > 0)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue