diff options
| author | 2016-12-08 10:34:53 -0500 | |
|---|---|---|
| committer | 2016-12-09 12:23:09 -0500 | |
| commit | 17b29d8865ea4d96c18f7e1671bd6d0f01eab95f (patch) | |
| tree | 20137ff3eed145ae36db64ccf4b54cf37384c82c /src/core/hle/kernel/kernel.h | |
| parent | Use boost remove_erase_if instead of the erase-remove idiom (diff) | |
| download | yuzu-17b29d8865ea4d96c18f7e1671bd6d0f01eab95f.tar.gz yuzu-17b29d8865ea4d96c18f7e1671bd6d0f01eab95f.tar.xz yuzu-17b29d8865ea4d96c18f7e1671bd6d0f01eab95f.zip | |
WaitSynch: Removed unused variables and reduced SharedPtr copies.
Define a variable with the value of the sync timeout error code.
Use a boost::flat_map instead of an unordered_map to hold the equivalence of objects and wait indices in a WaitSynchN call.
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
| -rw-r--r-- | src/core/hle/kernel/kernel.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h index eb5a3bf7e..4227d2373 100644 --- a/src/core/hle/kernel/kernel.h +++ b/src/core/hle/kernel/kernel.h | |||
| @@ -152,7 +152,10 @@ public: | |||
| 152 | */ | 152 | */ |
| 153 | void RemoveWaitingThread(Thread* thread); | 153 | void RemoveWaitingThread(Thread* thread); |
| 154 | 154 | ||
| 155 | /// Wake up all threads waiting on this object | 155 | /** |
| 156 | * Wake up all threads waiting on this object that can be awoken, in priority order, | ||
| 157 | * and set the synchronization result and output of the thread. | ||
| 158 | */ | ||
| 156 | void WakeupAllWaitingThreads(); | 159 | void WakeupAllWaitingThreads(); |
| 157 | 160 | ||
| 158 | /// Obtains the highest priority thread that is ready to run from this object's waiting list. | 161 | /// Obtains the highest priority thread that is ready to run from this object's waiting list. |