diff options
| author | 2019-11-23 13:23:23 -0500 | |
|---|---|---|
| committer | 2019-11-23 13:23:23 -0500 | |
| commit | 6e4d46908af55e16afca1aa05aeab47e20ab49f5 (patch) | |
| tree | ce0f6fd75e88b90325ab2673964c2b07234bb3d0 /src/core/hle/kernel/thread.h | |
| parent | Merge pull request #3140 from FearlessTobi/port-4953 (diff) | |
| parent | Kernel: Correct Cancel Synchronization. (diff) | |
| download | yuzu-6e4d46908af55e16afca1aa05aeab47e20ab49f5.tar.gz yuzu-6e4d46908af55e16afca1aa05aeab47e20ab49f5.tar.xz yuzu-6e4d46908af55e16afca1aa05aeab47e20ab49f5.zip | |
Merge pull request #3130 from FernandoS27/cancel-sync
Kernel: Correct Cancel Synchronization.
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 c9870873d..25a6ed234 100644 --- a/src/core/hle/kernel/thread.h +++ b/src/core/hle/kernel/thread.h | |||
| @@ -440,6 +440,14 @@ public: | |||
| 440 | is_running = value; | 440 | is_running = value; |
| 441 | } | 441 | } |
| 442 | 442 | ||
| 443 | bool IsSyncCancelled() const { | ||
| 444 | return is_sync_cancelled; | ||
| 445 | } | ||
| 446 | |||
| 447 | void SetSyncCancelled(bool value) { | ||
| 448 | is_sync_cancelled = value; | ||
| 449 | } | ||
| 450 | |||
| 443 | private: | 451 | private: |
| 444 | explicit Thread(KernelCore& kernel); | 452 | explicit Thread(KernelCore& kernel); |
| 445 | ~Thread() override; | 453 | ~Thread() override; |
| @@ -524,6 +532,7 @@ private: | |||
| 524 | 532 | ||
| 525 | u32 scheduling_state = 0; | 533 | u32 scheduling_state = 0; |
| 526 | bool is_running = false; | 534 | bool is_running = false; |
| 535 | bool is_sync_cancelled = false; | ||
| 527 | 536 | ||
| 528 | std::string name; | 537 | std::string name; |
| 529 | }; | 538 | }; |