summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.h
diff options
context:
space:
mode:
authorGravatar bunnei2015-05-11 23:22:47 -0400
committerGravatar bunnei2015-05-11 23:22:47 -0400
commitee8da4c35649a70cfb61484d0a41ba04aff034c1 (patch)
tree65b7b2cd1c0fcc22f545c87052ec00f3528c92f4 /src/core/hle/kernel/thread.h
parentMerge pull request #757 from Subv/scheduling (diff)
parentThread: Remove the idle thread (diff)
downloadyuzu-ee8da4c35649a70cfb61484d0a41ba04aff034c1.tar.gz
yuzu-ee8da4c35649a70cfb61484d0a41ba04aff034c1.tar.xz
yuzu-ee8da4c35649a70cfb61484d0a41ba04aff034c1.zip
Merge pull request #751 from yuriks/idle-thread
Thread: Remove the idle thread
Diffstat (limited to 'src/core/hle/kernel/thread.h')
-rw-r--r--src/core/hle/kernel/thread.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h
index 1d4d010fe..a06c7d4fe 100644
--- a/src/core/hle/kernel/thread.h
+++ b/src/core/hle/kernel/thread.h
@@ -73,12 +73,6 @@ public:
73 void Acquire() override; 73 void Acquire() override;
74 74
75 /** 75 /**
76 * Checks if the thread is an idle (stub) thread
77 * @return True if the thread is an idle (stub) thread, false otherwise
78 */
79 inline bool IsIdle() const { return idle; }
80
81 /**
82 * Gets the thread's current priority 76 * Gets the thread's current priority
83 * @return The current thread's priority 77 * @return The current thread's priority
84 */ 78 */
@@ -170,9 +164,6 @@ public:
170 164
171 std::string name; 165 std::string name;
172 166
173 /// Whether this thread is intended to never actually be executed, i.e. always idle
174 bool idle = false;
175
176private: 167private:
177 Thread(); 168 Thread();
178 ~Thread() override; 169 ~Thread() override;
@@ -231,14 +222,6 @@ void WaitCurrentThread_WaitSynchronization(std::vector<SharedPtr<WaitObject>> wa
231void WaitCurrentThread_ArbitrateAddress(VAddr wait_address); 222void WaitCurrentThread_ArbitrateAddress(VAddr wait_address);
232 223
233/** 224/**
234 * Sets up the idle thread, this is a thread that is intended to never execute instructions,
235 * only to advance the timing. It is scheduled when there are no other ready threads in the thread queue
236 * and will try to yield on every call.
237 * @return The handle of the idle thread
238 */
239SharedPtr<Thread> SetupIdleThread();
240
241/**
242 * Initialize threading 225 * Initialize threading
243 */ 226 */
244void ThreadingInit(); 227void ThreadingInit();