summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.cpp
diff options
context:
space:
mode:
authorGravatar Subv2017-01-05 13:17:06 -0500
committerGravatar Subv2017-01-05 13:17:06 -0500
commit5e2a8ebabf52fc05eca41cafad1c85478a0c5dbb (patch)
tree2eab95cf5db820bbc09475eb88f614d11940e95e /src/core/hle/kernel/thread.cpp
parentMerge pull request #2393 from Subv/synch (diff)
downloadyuzu-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.cpp23
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 */
74static 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
252void 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
260void WaitCurrentThread_ArbitrateAddress(VAddr wait_address) { 237void 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;