diff options
| author | Subv <subv2112@gmail.com> | 2018-01-08 14:14:30 -0500 |
|---|---|---|
| committer | bunnei <bunneidev@gmail.com> | 2018-01-08 21:12:54 -0500 |
| commit | 96e2acfa8fa89008fcd235201ac34c3989a0cfae (patch) | |
| tree | f53b53b9620ca36a5b8085e3e9d2b603477142fc /src/citra_qt/debugger/wait_tree.cpp | |
| parent | 2ca36ac39477b5c6b415084d81a4cb54403282d2 (diff) | |
Kernel: Actually wake up the requested number of threads in Semaphore::Release.
Also properly keep track of data in guest memory, this fixes managing the semaphore from userland.
It was found that Semaphores are actually Condition Variables, with Release(1) and Release(-1) being equivalent to notify_one and notify_all. We should change the name of the class to reflect this.
Diffstat (limited to 'src/citra_qt/debugger/wait_tree.cpp')
| -rw-r--r-- | src/citra_qt/debugger/wait_tree.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/citra_qt/debugger/wait_tree.cpp b/src/citra_qt/debugger/wait_tree.cpp index ebcc02894c..6d15e43aa1 100644 --- a/src/citra_qt/debugger/wait_tree.cpp +++ b/src/citra_qt/debugger/wait_tree.cpp @@ -273,9 +273,8 @@ std::vector<std::unique_ptr<WaitTreeItem>> WaitTreeSemaphore::GetChildren() cons std::vector<std::unique_ptr<WaitTreeItem>> list(WaitTreeWaitObject::GetChildren()); const auto& semaphore = static_cast<const Kernel::Semaphore&>(object); - list.push_back( - std::make_unique<WaitTreeText>(tr("available count = %1").arg(semaphore.available_count))); - list.push_back(std::make_unique<WaitTreeText>(tr("max count = %1").arg(semaphore.max_count))); + list.push_back(std::make_unique<WaitTreeText>( + tr("available count = %1").arg(semaphore.GetAvailableCount()))); return list; } |
