summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/timer.h
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2017-01-09 18:48:17 +0100
committerSubv <subv2112@gmail.com>2017-02-22 02:51:54 +0100
commit029a11030ee12470e3f3c3431639fbde8d350c77 (patch)
tree7add500564e7f7db5ac642db77525b15b7b58793 /src/core/hle/kernel/timer.h
parentOpenGL: Check if uniform block exists before updating it (#2581) (diff)
downloadyuzu-029a11030ee12470e3f3c3431639fbde8d350c77.tar
yuzu-029a11030ee12470e3f3c3431639fbde8d350c77.tar.gz
yuzu-029a11030ee12470e3f3c3431639fbde8d350c77.tar.bz2
yuzu-029a11030ee12470e3f3c3431639fbde8d350c77.tar.lz
yuzu-029a11030ee12470e3f3c3431639fbde8d350c77.tar.xz
yuzu-029a11030ee12470e3f3c3431639fbde8d350c77.tar.zst
yuzu-029a11030ee12470e3f3c3431639fbde8d350c77.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;