summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.h
diff options
context:
space:
mode:
authorGravatar bunnei2015-01-18 13:56:40 -0500
committerGravatar bunnei2015-01-21 20:47:45 -0500
commit254e4ebd58a31e8462b70799f95f096d0d0038f2 (patch)
treee8e475ec7af1ba2df06b7f44298408f51a89a116 /src/core/hle/kernel/thread.h
parentKernel: Get rid of WaitTypes and simplify lots of code, removing hacks. (diff)
downloadyuzu-254e4ebd58a31e8462b70799f95f096d0d0038f2.tar.gz
yuzu-254e4ebd58a31e8462b70799f95f096d0d0038f2.tar.xz
yuzu-254e4ebd58a31e8462b70799f95f096d0d0038f2.zip
AddressArbiter: Changed to Kernel::Object, big cleanup, removed code that made no sense.
Diffstat (limited to 'src/core/hle/kernel/thread.h')
-rw-r--r--src/core/hle/kernel/thread.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h
index cb48fcadc..9907aa6e1 100644
--- a/src/core/hle/kernel/thread.h
+++ b/src/core/hle/kernel/thread.h
@@ -69,10 +69,10 @@ public:
69 void Stop(const char* reason); 69 void Stop(const char* reason);
70 70
71 /** 71 /**
72 * Release an object from the thread's wait list 72 * Release an acquired wait object
73 * @param wait_object WaitObject to release from the thread's wait list 73 * @param wait_object WaitObject to release
74 */ 74 */
75 void ReleaseFromWait(WaitObject* wait_object); 75 void ReleaseWaitObject(WaitObject* wait_object);
76 76
77 /// Resumes a thread from waiting by marking it as "ready" 77 /// Resumes a thread from waiting by marking it as "ready"
78 void ResumeFromWait(); 78 void ResumeFromWait();
@@ -120,16 +120,16 @@ SharedPtr<Thread> SetupMainThread(s32 priority, u32 stack_size);
120void Reschedule(); 120void Reschedule();
121 121
122/// Arbitrate the highest priority thread that is waiting 122/// Arbitrate the highest priority thread that is waiting
123Thread* ArbitrateHighestPriorityThread(WaitObject* arbiter, u32 address); 123Thread* ArbitrateHighestPriorityThread(u32 address);
124 124
125/// Arbitrate all threads currently waiting... 125/// Arbitrate all threads currently waiting...
126void ArbitrateAllThreads(WaitObject* arbiter, u32 address); 126void ArbitrateAllThreads(u32 address);
127 127
128/// Gets the current thread 128/// Gets the current thread
129Thread* GetCurrentThread(); 129Thread* GetCurrentThread();
130 130
131/// Waits the current thread 131/// Waits the current thread on a sleep
132void WaitCurrentThread(); 132void WaitCurrentThread_Sleep();
133 133
134/** 134/**
135 * Waits the current thread from a WaitSynchronization call 135 * Waits the current thread from a WaitSynchronization call
@@ -140,10 +140,9 @@ void WaitCurrentThread_WaitSynchronization(WaitObject* wait_object, bool wait_al
140 140
141/** 141/**
142 * Waits the current thread from an ArbitrateAddress call 142 * Waits the current thread from an ArbitrateAddress call
143 * @param wait_object Kernel object that we are waiting on
144 * @param wait_address Arbitration address used to resume from wait 143 * @param wait_address Arbitration address used to resume from wait
145 */ 144 */
146void WaitCurrentThread_ArbitrateAddress(WaitObject* wait_object, VAddr wait_address); 145void WaitCurrentThread_ArbitrateAddress(VAddr wait_address);
147 146
148/** 147/**
149 * Schedules an event to wake up the specified thread after the specified delay. 148 * Schedules an event to wake up the specified thread after the specified delay.