diff options
| author | 2014-07-06 22:48:19 -0400 | |
|---|---|---|
| committer | 2014-07-08 18:46:15 -0400 | |
| commit | ba840d3200183e30a5d85acf494d2a6bbbb3a386 (patch) | |
| tree | db48fcff1aa64ce648af51934a0c226646d2c3be /src/core/hle/kernel/thread.h | |
| parent | function_wrappers: Fixed incorrect wrapper, added another. (diff) | |
| download | yuzu-ba840d3200183e30a5d85acf494d2a6bbbb3a386.tar.gz yuzu-ba840d3200183e30a5d85acf494d2a6bbbb3a386.tar.xz yuzu-ba840d3200183e30a5d85acf494d2a6bbbb3a386.zip | |
Thread: Added functions to resume threads from address arbitration.
Thread: Cleaned up arbitrate address functions.
Thread: Cleaned up ArbitrateAllThreads function.
Diffstat (limited to 'src/core/hle/kernel/thread.h')
| -rw-r--r-- | src/core/hle/kernel/thread.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h index 04914ba90..f2bfdfa1a 100644 --- a/src/core/hle/kernel/thread.h +++ b/src/core/hle/kernel/thread.h | |||
| @@ -39,6 +39,7 @@ enum WaitType { | |||
| 39 | WAITTYPE_VBLANK, | 39 | WAITTYPE_VBLANK, |
| 40 | WAITTYPE_MUTEX, | 40 | WAITTYPE_MUTEX, |
| 41 | WAITTYPE_SYNCH, | 41 | WAITTYPE_SYNCH, |
| 42 | WAITTYPE_ARB, | ||
| 42 | }; | 43 | }; |
| 43 | 44 | ||
| 44 | namespace Kernel { | 45 | namespace Kernel { |
| @@ -59,6 +60,12 @@ void StopThread(Handle thread, const char* reason); | |||
| 59 | /// Resumes a thread from waiting by marking it as "ready" | 60 | /// Resumes a thread from waiting by marking it as "ready" |
| 60 | void ResumeThreadFromWait(Handle handle); | 61 | void ResumeThreadFromWait(Handle handle); |
| 61 | 62 | ||
| 63 | /// Arbitrate the highest priority thread that is waiting | ||
| 64 | Handle ArbitrateHighestPriorityThread(u32 arbiter, u32 address); | ||
| 65 | |||
| 66 | /// Arbitrate all threads currently waiting... | ||
| 67 | void ArbitrateAllThreads(u32 arbiter, u32 address); | ||
| 68 | |||
| 62 | /// Gets the current thread handle | 69 | /// Gets the current thread handle |
| 63 | Handle GetCurrentThreadHandle(); | 70 | Handle GetCurrentThreadHandle(); |
| 64 | 71 | ||