mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-12 09:07:57 -05:00
Thread: Added functions to resume threads from address arbitration.
Thread: Cleaned up arbitrate address functions. Thread: Cleaned up ArbitrateAllThreads function.
This commit is contained in:
@ -39,6 +39,7 @@ enum WaitType {
|
||||
WAITTYPE_VBLANK,
|
||||
WAITTYPE_MUTEX,
|
||||
WAITTYPE_SYNCH,
|
||||
WAITTYPE_ARB,
|
||||
};
|
||||
|
||||
namespace Kernel {
|
||||
@ -59,6 +60,12 @@ void StopThread(Handle thread, const char* reason);
|
||||
/// Resumes a thread from waiting by marking it as "ready"
|
||||
void ResumeThreadFromWait(Handle handle);
|
||||
|
||||
/// Arbitrate the highest priority thread that is waiting
|
||||
Handle ArbitrateHighestPriorityThread(u32 arbiter, u32 address);
|
||||
|
||||
/// Arbitrate all threads currently waiting...
|
||||
void ArbitrateAllThreads(u32 arbiter, u32 address);
|
||||
|
||||
/// Gets the current thread handle
|
||||
Handle GetCurrentThreadHandle();
|
||||
|
||||
|
Reference in New Issue
Block a user