diff options
| author | 2020-02-25 12:40:33 -0400 | |
|---|---|---|
| committer | 2020-06-27 11:35:11 -0400 | |
| commit | 49ba56399563a87f29b4d89eb04b1178a571eb61 (patch) | |
| tree | 3da8def77e63141936483c64f7e13bfe89e614fa /src/core/hle/kernel/thread.h | |
| parent | HostTiming: Pause the hardware clock on pause. (diff) | |
| download | yuzu-49ba56399563a87f29b4d89eb04b1178a571eb61.tar.gz yuzu-49ba56399563a87f29b4d89eb04b1178a571eb61.tar.xz yuzu-49ba56399563a87f29b4d89eb04b1178a571eb61.zip | |
SVC: Correct CreateThread, StartThread, ExitThread, SleepThread.
Diffstat (limited to 'src/core/hle/kernel/thread.h')
| -rw-r--r-- | src/core/hle/kernel/thread.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h index 33d340b47..78a4357b0 100644 --- a/src/core/hle/kernel/thread.h +++ b/src/core/hle/kernel/thread.h | |||
| @@ -236,6 +236,8 @@ public: | |||
| 236 | 236 | ||
| 237 | void OnWakeUp(); | 237 | void OnWakeUp(); |
| 238 | 238 | ||
| 239 | ResultCode Start(); | ||
| 240 | |||
| 239 | /// Cancels a waiting operation that this thread may or may not be within. | 241 | /// Cancels a waiting operation that this thread may or may not be within. |
| 240 | /// | 242 | /// |
| 241 | /// When the thread is within a waiting state, this will set the thread's | 243 | /// When the thread is within a waiting state, this will set the thread's |
| @@ -470,16 +472,16 @@ public: | |||
| 470 | void SetActivity(ThreadActivity value); | 472 | void SetActivity(ThreadActivity value); |
| 471 | 473 | ||
| 472 | /// Sleeps this thread for the given amount of nanoseconds. | 474 | /// Sleeps this thread for the given amount of nanoseconds. |
| 473 | void Sleep(s64 nanoseconds); | 475 | ResultCode Sleep(s64 nanoseconds); |
| 474 | 476 | ||
| 475 | /// Yields this thread without rebalancing loads. | 477 | /// Yields this thread without rebalancing loads. |
| 476 | bool YieldSimple(); | 478 | ResultCode YieldSimple(); |
| 477 | 479 | ||
| 478 | /// Yields this thread and does a load rebalancing. | 480 | /// Yields this thread and does a load rebalancing. |
| 479 | bool YieldAndBalanceLoad(); | 481 | ResultCode YieldAndBalanceLoad(); |
| 480 | 482 | ||
| 481 | /// Yields this thread and if the core is left idle, loads are rebalanced | 483 | /// Yields this thread and if the core is left idle, loads are rebalanced |
| 482 | bool YieldAndWaitForLoadBalancing(); | 484 | ResultCode YieldAndWaitForLoadBalancing(); |
| 483 | 485 | ||
| 484 | void IncrementYieldCount() { | 486 | void IncrementYieldCount() { |
| 485 | yield_count++; | 487 | yield_count++; |
| @@ -603,6 +605,8 @@ private: | |||
| 603 | bool is_running = false; | 605 | bool is_running = false; |
| 604 | bool is_sync_cancelled = false; | 606 | bool is_sync_cancelled = false; |
| 605 | 607 | ||
| 608 | bool will_be_terminated{}; | ||
| 609 | |||
| 606 | std::string name; | 610 | std::string name; |
| 607 | }; | 611 | }; |
| 608 | 612 | ||