diff options
| author | 2017-01-05 12:55:01 -0500 | |
|---|---|---|
| committer | 2017-01-05 12:55:01 -0500 | |
| commit | f20d872643654c574f73a263f032613046900f07 (patch) | |
| tree | 021284c18034d053c81928fa19d2efb6658451fb /src/citra_qt/debugger/wait_tree.cpp | |
| parent | Merge pull request #2407 from jroweboy/nightly-deploy (diff) | |
| parent | Kernel: Add some asserts to enforce the invariants in the scheduler. (diff) | |
| download | yuzu-f20d872643654c574f73a263f032613046900f07.tar.gz yuzu-f20d872643654c574f73a263f032613046900f07.tar.xz yuzu-f20d872643654c574f73a263f032613046900f07.zip | |
Merge pull request #2393 from Subv/synch
Kernel: Mutex priority inheritance and synchronization improvements.
Diffstat (limited to 'src/citra_qt/debugger/wait_tree.cpp')
| -rw-r--r-- | src/citra_qt/debugger/wait_tree.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/citra_qt/debugger/wait_tree.cpp b/src/citra_qt/debugger/wait_tree.cpp index 1d2de5185..b6ecf3819 100644 --- a/src/citra_qt/debugger/wait_tree.cpp +++ b/src/citra_qt/debugger/wait_tree.cpp | |||
| @@ -153,7 +153,8 @@ QString WaitTreeThread::GetText() const { | |||
| 153 | case THREADSTATUS_WAIT_SLEEP: | 153 | case THREADSTATUS_WAIT_SLEEP: |
| 154 | status = tr("sleeping"); | 154 | status = tr("sleeping"); |
| 155 | break; | 155 | break; |
| 156 | case THREADSTATUS_WAIT_SYNCH: | 156 | case THREADSTATUS_WAIT_SYNCH_ALL: |
| 157 | case THREADSTATUS_WAIT_SYNCH_ANY: | ||
| 157 | status = tr("waiting for objects"); | 158 | status = tr("waiting for objects"); |
| 158 | break; | 159 | break; |
| 159 | case THREADSTATUS_DORMANT: | 160 | case THREADSTATUS_DORMANT: |
| @@ -180,7 +181,8 @@ QColor WaitTreeThread::GetColor() const { | |||
| 180 | return QColor(Qt::GlobalColor::darkRed); | 181 | return QColor(Qt::GlobalColor::darkRed); |
| 181 | case THREADSTATUS_WAIT_SLEEP: | 182 | case THREADSTATUS_WAIT_SLEEP: |
| 182 | return QColor(Qt::GlobalColor::darkYellow); | 183 | return QColor(Qt::GlobalColor::darkYellow); |
| 183 | case THREADSTATUS_WAIT_SYNCH: | 184 | case THREADSTATUS_WAIT_SYNCH_ALL: |
| 185 | case THREADSTATUS_WAIT_SYNCH_ANY: | ||
| 184 | return QColor(Qt::GlobalColor::red); | 186 | return QColor(Qt::GlobalColor::red); |
| 185 | case THREADSTATUS_DORMANT: | 187 | case THREADSTATUS_DORMANT: |
| 186 | return QColor(Qt::GlobalColor::darkCyan); | 188 | return QColor(Qt::GlobalColor::darkCyan); |
| @@ -228,7 +230,8 @@ std::vector<std::unique_ptr<WaitTreeItem>> WaitTreeThread::GetChildren() const { | |||
| 228 | } else { | 230 | } else { |
| 229 | list.push_back(std::make_unique<WaitTreeMutexList>(thread.held_mutexes)); | 231 | list.push_back(std::make_unique<WaitTreeMutexList>(thread.held_mutexes)); |
| 230 | } | 232 | } |
| 231 | if (thread.status == THREADSTATUS_WAIT_SYNCH) { | 233 | if (thread.status == THREADSTATUS_WAIT_SYNCH_ANY || |
| 234 | thread.status == THREADSTATUS_WAIT_SYNCH_ALL) { | ||
| 232 | list.push_back(std::make_unique<WaitTreeObjectList>(thread.wait_objects, | 235 | list.push_back(std::make_unique<WaitTreeObjectList>(thread.wait_objects, |
| 233 | thread.IsSleepingOnWaitAll())); | 236 | thread.IsSleepingOnWaitAll())); |
| 234 | } | 237 | } |