Browse Source
Merge pull request #9158 from liamwhite/single-bore
k_thread: fix single core
pull/15/merge
Fernando S
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
2 deletions
-
src/core/hle/kernel/k_thread.cpp
|
|
|
@ -1185,8 +1185,10 @@ void KThread::RequestDummyThreadWait() { |
|
|
|
} |
|
|
|
|
|
|
|
void KThread::DummyThreadBeginWait() { |
|
|
|
ASSERT(this->IsDummyThread()); |
|
|
|
ASSERT(!kernel.IsPhantomModeForSingleCore()); |
|
|
|
if (!this->IsDummyThread() || kernel.IsPhantomModeForSingleCore()) { |
|
|
|
// Occurs in single core mode.
|
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
// Block until runnable is no longer false.
|
|
|
|
dummy_thread_runnable.wait(false); |
|
|
|
|