summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/timer.h
diff options
context:
space:
mode:
authorGravatar Yuri Kunde Schlesner2016-09-21 11:29:48 -0700
committerGravatar GitHub2016-09-21 11:29:48 -0700
commitd5d2ca8058a0f1c00ab7ca9fe2c058ba47546c0a (patch)
tree8a22ca73ff838f3f0090b29a548ae81087fc90ed /src/core/hle/kernel/timer.h
parentREADME: Specify master branch for Travis CI badge (diff)
parentFix Travis clang-format check (diff)
downloadyuzu-d5d2ca8058a0f1c00ab7ca9fe2c058ba47546c0a.tar.gz
yuzu-d5d2ca8058a0f1c00ab7ca9fe2c058ba47546c0a.tar.xz
yuzu-d5d2ca8058a0f1c00ab7ca9fe2c058ba47546c0a.zip
Merge pull request #2086 from linkmauve/clang-format
Add clang-format as part of our {commit,travis}-time checks
Diffstat (limited to 'src/core/hle/kernel/timer.h')
-rw-r--r--src/core/hle/kernel/timer.h23
1 files changed, 14 insertions, 9 deletions
diff --git a/src/core/hle/kernel/timer.h b/src/core/hle/kernel/timer.h
index b1db60e8f..59a77aad3 100644
--- a/src/core/hle/kernel/timer.h
+++ b/src/core/hle/kernel/timer.h
@@ -5,7 +5,6 @@
5#pragma once 5#pragma once
6 6
7#include "common/common_types.h" 7#include "common/common_types.h"
8
9#include "core/hle/kernel/event.h" 8#include "core/hle/kernel/event.h"
10#include "core/hle/kernel/kernel.h" 9#include "core/hle/kernel/kernel.h"
11 10
@@ -21,19 +20,25 @@ public:
21 */ 20 */
22 static SharedPtr<Timer> Create(ResetType reset_type, std::string name = "Unknown"); 21 static SharedPtr<Timer> Create(ResetType reset_type, std::string name = "Unknown");
23 22
24 std::string GetTypeName() const override { return "Timer"; } 23 std::string GetTypeName() const override {
25 std::string GetName() const override { return name; } 24 return "Timer";
25 }
26 std::string GetName() const override {
27 return name;
28 }
26 29
27 static const HandleType HANDLE_TYPE = HandleType::Timer; 30 static const HandleType HANDLE_TYPE = HandleType::Timer;
28 HandleType GetHandleType() const override { return HANDLE_TYPE; } 31 HandleType GetHandleType() const override {
32 return HANDLE_TYPE;
33 }
29 34
30 ResetType reset_type; ///< The ResetType of this timer 35 ResetType reset_type; ///< The ResetType of this timer
31 36
32 bool signaled; ///< Whether the timer has been signaled or not 37 bool signaled; ///< Whether the timer has been signaled or not
33 std::string name; ///< Name of timer (optional) 38 std::string name; ///< Name of timer (optional)
34 39
35 u64 initial_delay; ///< The delay until the timer fires for the first time 40 u64 initial_delay; ///< The delay until the timer fires for the first time
36 u64 interval_delay; ///< The delay until the timer fires after the first time 41 u64 interval_delay; ///< The delay until the timer fires after the first time
37 42
38 bool ShouldWait() override; 43 bool ShouldWait() override;
39 void Acquire() override; 44 void Acquire() override;