mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-26 08:42:45 +01:00
Synchronization: Correct wide Assertion.
This commit is contained in:
parent
ab9aae28bf
commit
8a78fc2580
1 changed files with 4 additions and 2 deletions
|
@ -23,8 +23,10 @@ void Synchronization::SignalObject(SynchronizationObject& obj) const {
|
||||||
if (obj.IsSignaled()) {
|
if (obj.IsSignaled()) {
|
||||||
for (auto thread : obj.GetWaitingThreads()) {
|
for (auto thread : obj.GetWaitingThreads()) {
|
||||||
if (thread->GetSchedulingStatus() == ThreadSchedStatus::Paused) {
|
if (thread->GetSchedulingStatus() == ThreadSchedStatus::Paused) {
|
||||||
|
if (thread->GetStatus() != ThreadStatus::WaitHLEEvent) {
|
||||||
ASSERT(thread->GetStatus() == ThreadStatus::WaitSynch);
|
ASSERT(thread->GetStatus() == ThreadStatus::WaitSynch);
|
||||||
ASSERT(thread->IsWaitingSync());
|
ASSERT(thread->IsWaitingSync());
|
||||||
|
}
|
||||||
thread->SetSynchronizationResults(&obj, RESULT_SUCCESS);
|
thread->SetSynchronizationResults(&obj, RESULT_SUCCESS);
|
||||||
thread->ResumeFromWait();
|
thread->ResumeFromWait();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue