diff options
| author | 2015-05-11 16:09:10 -0300 | |
|---|---|---|
| committer | 2015-05-11 22:39:39 -0300 | |
| commit | 4f7a055081dff4299ee049a03c7a6f1659406942 (patch) | |
| tree | a9ba4323003af89d5fcb8b993a27bcad98401e06 /src/core/hle/kernel/thread.h | |
| parent | Merge pull request #749 from yuriks/stack-top (diff) | |
| download | yuzu-4f7a055081dff4299ee049a03c7a6f1659406942.tar.gz yuzu-4f7a055081dff4299ee049a03c7a6f1659406942.tar.xz yuzu-4f7a055081dff4299ee049a03c7a6f1659406942.zip | |
Thread: Remove the idle thread
Instead just use nullptr to represent no thread is active.
Diffstat (limited to 'src/core/hle/kernel/thread.h')
| -rw-r--r-- | src/core/hle/kernel/thread.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h index afdaf8511..2ee63d279 100644 --- a/src/core/hle/kernel/thread.h +++ b/src/core/hle/kernel/thread.h | |||
| @@ -72,12 +72,6 @@ public: | |||
| 72 | void Acquire() override; | 72 | void Acquire() override; |
| 73 | 73 | ||
| 74 | /** | 74 | /** |
| 75 | * Checks if the thread is an idle (stub) thread | ||
| 76 | * @return True if the thread is an idle (stub) thread, false otherwise | ||
| 77 | */ | ||
| 78 | inline bool IsIdle() const { return idle; } | ||
| 79 | |||
| 80 | /** | ||
| 81 | * Gets the thread's current priority | 75 | * Gets the thread's current priority |
| 82 | * @return The current thread's priority | 76 | * @return The current thread's priority |
| 83 | */ | 77 | */ |
| @@ -168,9 +162,6 @@ public: | |||
| 168 | 162 | ||
| 169 | std::string name; | 163 | std::string name; |
| 170 | 164 | ||
| 171 | /// Whether this thread is intended to never actually be executed, i.e. always idle | ||
| 172 | bool idle = false; | ||
| 173 | |||
| 174 | private: | 165 | private: |
| 175 | Thread(); | 166 | Thread(); |
| 176 | ~Thread() override; | 167 | ~Thread() override; |
| @@ -229,14 +220,6 @@ void WaitCurrentThread_WaitSynchronization(std::vector<SharedPtr<WaitObject>> wa | |||
| 229 | void WaitCurrentThread_ArbitrateAddress(VAddr wait_address); | 220 | void WaitCurrentThread_ArbitrateAddress(VAddr wait_address); |
| 230 | 221 | ||
| 231 | /** | 222 | /** |
| 232 | * Sets up the idle thread, this is a thread that is intended to never execute instructions, | ||
| 233 | * only to advance the timing. It is scheduled when there are no other ready threads in the thread queue | ||
| 234 | * and will try to yield on every call. | ||
| 235 | * @return The handle of the idle thread | ||
| 236 | */ | ||
| 237 | SharedPtr<Thread> SetupIdleThread(); | ||
| 238 | |||
| 239 | /** | ||
| 240 | * Initialize threading | 223 | * Initialize threading |
| 241 | */ | 224 | */ |
| 242 | void ThreadingInit(); | 225 | void ThreadingInit(); |