summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/thread.h
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-02-25 17:40:33 +0100
committerFernando Sahmkow <fsahmkow27@gmail.com>2020-06-27 17:35:11 +0200
commit49ba56399563a87f29b4d89eb04b1178a571eb61 (patch)
tree3da8def77e63141936483c64f7e13bfe89e614fa /src/core/hle/kernel/thread.h
parentHostTiming: Pause the hardware clock on pause. (diff)
downloadyuzu-49ba56399563a87f29b4d89eb04b1178a571eb61.tar
yuzu-49ba56399563a87f29b4d89eb04b1178a571eb61.tar.gz
yuzu-49ba56399563a87f29b4d89eb04b1178a571eb61.tar.bz2
yuzu-49ba56399563a87f29b4d89eb04b1178a571eb61.tar.lz
yuzu-49ba56399563a87f29b4d89eb04b1178a571eb61.tar.xz
yuzu-49ba56399563a87f29b4d89eb04b1178a571eb61.tar.zst
yuzu-49ba56399563a87f29b4d89eb04b1178a571eb61.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/thread.h12
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:
void OnWakeUp();
+ ResultCode Start();
+
/// Cancels a waiting operation that this thread may or may not be within.
///
/// When the thread is within a waiting state, this will set the thread's
@@ -470,16 +472,16 @@ public:
void SetActivity(ThreadActivity value);
/// Sleeps this thread for the given amount of nanoseconds.
- void Sleep(s64 nanoseconds);
+ ResultCode Sleep(s64 nanoseconds);
/// Yields this thread without rebalancing loads.
- bool YieldSimple();
+ ResultCode YieldSimple();
/// Yields this thread and does a load rebalancing.
- bool YieldAndBalanceLoad();
+ ResultCode YieldAndBalanceLoad();
/// Yields this thread and if the core is left idle, loads are rebalanced
- bool YieldAndWaitForLoadBalancing();
+ ResultCode YieldAndWaitForLoadBalancing();
void IncrementYieldCount() {
yield_count++;
@@ -603,6 +605,8 @@ private:
bool is_running = false;
bool is_sync_cancelled = false;
+ bool will_be_terminated{};
+
std::string name;
};