mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-10 04:17:56 -05:00
Thread: Remove the idle thread
Instead just use nullptr to represent no thread is active.
This commit is contained in:
@ -71,12 +71,6 @@ public:
|
||||
bool ShouldWait() override;
|
||||
void Acquire() override;
|
||||
|
||||
/**
|
||||
* Checks if the thread is an idle (stub) thread
|
||||
* @return True if the thread is an idle (stub) thread, false otherwise
|
||||
*/
|
||||
inline bool IsIdle() const { return idle; }
|
||||
|
||||
/**
|
||||
* Gets the thread's current priority
|
||||
* @return The current thread's priority
|
||||
@ -168,9 +162,6 @@ public:
|
||||
|
||||
std::string name;
|
||||
|
||||
/// Whether this thread is intended to never actually be executed, i.e. always idle
|
||||
bool idle = false;
|
||||
|
||||
private:
|
||||
Thread();
|
||||
~Thread() override;
|
||||
@ -228,14 +219,6 @@ void WaitCurrentThread_WaitSynchronization(std::vector<SharedPtr<WaitObject>> wa
|
||||
*/
|
||||
void WaitCurrentThread_ArbitrateAddress(VAddr wait_address);
|
||||
|
||||
/**
|
||||
* Sets up the idle thread, this is a thread that is intended to never execute instructions,
|
||||
* only to advance the timing. It is scheduled when there are no other ready threads in the thread queue
|
||||
* and will try to yield on every call.
|
||||
* @return The handle of the idle thread
|
||||
*/
|
||||
SharedPtr<Thread> SetupIdleThread();
|
||||
|
||||
/**
|
||||
* Initialize threading
|
||||
*/
|
||||
|
Reference in New Issue
Block a user