summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/timer.h
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2017-02-25 05:48:31 +0100
committerGitHub <noreply@github.com>2017-02-25 05:48:31 +0100
commitfb5301cf6e7fd5d9ff2ea28b0ee610a7861146e6 (patch)
treef913ca09229ad69b2a7af02fc7564481b316cf70 /src/core/hle/kernel/timer.h
parentFixes file upload pattern in the travis.yml to include macOS releases (#2592) (diff)
parentTimers: Return an error when calling SetTimer with negative timeouts. (diff)
downloadyuzu-fb5301cf6e7fd5d9ff2ea28b0ee610a7861146e6.tar
yuzu-fb5301cf6e7fd5d9ff2ea28b0ee610a7861146e6.tar.gz
yuzu-fb5301cf6e7fd5d9ff2ea28b0ee610a7861146e6.tar.bz2
yuzu-fb5301cf6e7fd5d9ff2ea28b0ee610a7861146e6.tar.lz
yuzu-fb5301cf6e7fd5d9ff2ea28b0ee610a7861146e6.tar.xz
yuzu-fb5301cf6e7fd5d9ff2ea28b0ee610a7861146e6.tar.zst
yuzu-fb5301cf6e7fd5d9ff2ea28b0ee610a7861146e6.zip
Diffstat (limited to 'src/core/hle/kernel/timer.h')
-rw-r--r--src/core/hle/kernel/timer.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/hle/kernel/timer.h b/src/core/hle/kernel/timer.h
index c174f5664..b0f818933 100644
--- a/src/core/hle/kernel/timer.h
+++ b/src/core/hle/kernel/timer.h
@@ -54,6 +54,14 @@ public:
void Cancel();
void Clear();
+ /**
+ * Signals the timer, waking up any waiting threads and rescheduling it
+ * for the next interval.
+ * This method should not be called from outside the timer callback handler,
+ * lest multiple callback events get scheduled.
+ */
+ void Signal(int cycles_late);
+
private:
Timer();
~Timer() override;