diff options
| author | 2017-01-05 13:17:06 -0500 | |
|---|---|---|
| committer | 2017-01-05 13:17:06 -0500 | |
| commit | 5e2a8ebabf52fc05eca41cafad1c85478a0c5dbb (patch) | |
| tree | 2eab95cf5db820bbc09475eb88f614d11940e95e /src/core/hle/kernel/thread.cpp | |
| parent | Merge pull request #2393 from Subv/synch (diff) | |
| download | yuzu-5e2a8ebabf52fc05eca41cafad1c85478a0c5dbb.tar.gz yuzu-5e2a8ebabf52fc05eca41cafad1c85478a0c5dbb.tar.xz yuzu-5e2a8ebabf52fc05eca41cafad1c85478a0c5dbb.zip | |
Kernel: Remove some unused functions.
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
| -rw-r--r-- | src/core/hle/kernel/thread.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index 9109bd10b..7b351ed5e 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp | |||
| @@ -66,21 +66,6 @@ Thread* GetCurrentThread() { | |||
| 66 | } | 66 | } |
| 67 | 67 | ||
| 68 | /** | 68 | /** |
| 69 | * Check if a thread is waiting on the specified wait object | ||
| 70 | * @param thread The thread to test | ||
| 71 | * @param wait_object The object to test against | ||
| 72 | * @return True if the thread is waiting, false otherwise | ||
| 73 | */ | ||
| 74 | static bool CheckWait_WaitObject(const Thread* thread, WaitObject* wait_object) { | ||
| 75 | if (thread->status != THREADSTATUS_WAIT_SYNCH_ALL && | ||
| 76 | thread->status != THREADSTATUS_WAIT_SYNCH_ANY) | ||
| 77 | return false; | ||
| 78 | |||
| 79 | auto itr = std::find(thread->wait_objects.begin(), thread->wait_objects.end(), wait_object); | ||
| 80 | return itr != thread->wait_objects.end(); | ||
| 81 | } | ||
| 82 | |||
| 83 | /** | ||
| 84 | * Check if the specified thread is waiting on the specified address to be arbitrated | 69 | * Check if the specified thread is waiting on the specified address to be arbitrated |
| 85 | * @param thread The thread to test | 70 | * @param thread The thread to test |
| 86 | * @param wait_address The address to test against | 71 | * @param wait_address The address to test against |
| @@ -249,14 +234,6 @@ void WaitCurrentThread_Sleep() { | |||
| 249 | thread->status = THREADSTATUS_WAIT_SLEEP; | 234 | thread->status = THREADSTATUS_WAIT_SLEEP; |
| 250 | } | 235 | } |
| 251 | 236 | ||
| 252 | void WaitCurrentThread_WaitSynchronization(std::vector<SharedPtr<WaitObject>> wait_objects, | ||
| 253 | bool wait_set_output) { | ||
| 254 | Thread* thread = GetCurrentThread(); | ||
| 255 | thread->wait_set_output = wait_set_output; | ||
| 256 | thread->wait_objects = std::move(wait_objects); | ||
| 257 | thread->status = THREADSTATUS_WAIT_SYNCH_ANY; | ||
| 258 | } | ||
| 259 | |||
| 260 | void WaitCurrentThread_ArbitrateAddress(VAddr wait_address) { | 237 | void WaitCurrentThread_ArbitrateAddress(VAddr wait_address) { |
| 261 | Thread* thread = GetCurrentThread(); | 238 | Thread* thread = GetCurrentThread(); |
| 262 | thread->wait_address = wait_address; | 239 | thread->wait_address = wait_address; |