diff options
| author | 2020-03-07 10:24:46 -0400 | |
|---|---|---|
| committer | 2020-06-27 11:35:33 -0400 | |
| commit | a66c61ca2de61e3a46fa857cf8afea359b2fb8eb (patch) | |
| tree | 7ed933638efc1a292fd452fbb2935042be7ec5e3 /src/core/hle/kernel/thread.h | |
| parent | Scheduler: Correct locking for hle threads. (diff) | |
| download | yuzu-a66c61ca2de61e3a46fa857cf8afea359b2fb8eb.tar.gz yuzu-a66c61ca2de61e3a46fa857cf8afea359b2fb8eb.tar.xz yuzu-a66c61ca2de61e3a46fa857cf8afea359b2fb8eb.zip | |
SCC: Small corrections to CancelSynchronization
Diffstat (limited to 'src/core/hle/kernel/thread.h')
| -rw-r--r-- | src/core/hle/kernel/thread.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h index e8355bbd1..d8a983200 100644 --- a/src/core/hle/kernel/thread.h +++ b/src/core/hle/kernel/thread.h | |||
| @@ -556,6 +556,14 @@ public: | |||
| 556 | waiting_for_arbitration = set; | 556 | waiting_for_arbitration = set; |
| 557 | } | 557 | } |
| 558 | 558 | ||
| 559 | bool IsWaitingSync() const { | ||
| 560 | return is_waiting_on_sync; | ||
| 561 | } | ||
| 562 | |||
| 563 | void SetWaitingSync(bool is_waiting) { | ||
| 564 | is_waiting_on_sync = is_waiting; | ||
| 565 | } | ||
| 566 | |||
| 559 | private: | 567 | private: |
| 560 | friend class GlobalScheduler; | 568 | friend class GlobalScheduler; |
| 561 | friend class Scheduler; | 569 | friend class Scheduler; |
| @@ -650,6 +658,7 @@ private: | |||
| 650 | 658 | ||
| 651 | u32 scheduling_state = 0; | 659 | u32 scheduling_state = 0; |
| 652 | bool is_running = false; | 660 | bool is_running = false; |
| 661 | bool is_waiting_on_sync = false; | ||
| 653 | bool is_sync_cancelled = false; | 662 | bool is_sync_cancelled = false; |
| 654 | 663 | ||
| 655 | bool will_be_terminated{}; | 664 | bool will_be_terminated{}; |