diff options
| author | 2015-01-27 02:40:21 -0200 | |
|---|---|---|
| committer | 2015-01-30 11:49:46 -0200 | |
| commit | d917a9bf7774fac3d7bccda761976615722ff3e6 (patch) | |
| tree | 64e4b1ec43b7699fe1a6ab1be1c688b6d63c0d75 /src | |
| parent | SVC: Use CASCADE_RESULT in SVC handlers (diff) | |
| download | yuzu-d917a9bf7774fac3d7bccda761976615722ff3e6.tar.gz yuzu-d917a9bf7774fac3d7bccda761976615722ff3e6.tar.xz yuzu-d917a9bf7774fac3d7bccda761976615722ff3e6.zip | |
Kernel: Mark all appropriate kernel objects as "final"
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/kernel/address_arbiter.h | 2 | ||||
| -rw-r--r-- | src/core/hle/kernel/event.h | 2 | ||||
| -rw-r--r-- | src/core/hle/kernel/mutex.h | 2 | ||||
| -rw-r--r-- | src/core/hle/kernel/semaphore.h | 2 | ||||
| -rw-r--r-- | src/core/hle/kernel/shared_memory.h | 2 | ||||
| -rw-r--r-- | src/core/hle/kernel/thread.h | 3 | ||||
| -rw-r--r-- | src/core/hle/kernel/timer.h | 2 |
7 files changed, 7 insertions, 8 deletions
diff --git a/src/core/hle/kernel/address_arbiter.h b/src/core/hle/kernel/address_arbiter.h index 536f0f017..638afff9e 100644 --- a/src/core/hle/kernel/address_arbiter.h +++ b/src/core/hle/kernel/address_arbiter.h | |||
| @@ -26,7 +26,7 @@ enum class ArbitrationType : u32 { | |||
| 26 | DecrementAndWaitIfLessThanWithTimeout, | 26 | DecrementAndWaitIfLessThanWithTimeout, |
| 27 | }; | 27 | }; |
| 28 | 28 | ||
| 29 | class AddressArbiter : public Object { | 29 | class AddressArbiter final : public Object { |
| 30 | public: | 30 | public: |
| 31 | /** | 31 | /** |
| 32 | * Creates an address arbiter. | 32 | * Creates an address arbiter. |
diff --git a/src/core/hle/kernel/event.h b/src/core/hle/kernel/event.h index 47420b157..2c3e6b14e 100644 --- a/src/core/hle/kernel/event.h +++ b/src/core/hle/kernel/event.h | |||
| @@ -11,7 +11,7 @@ | |||
| 11 | 11 | ||
| 12 | namespace Kernel { | 12 | namespace Kernel { |
| 13 | 13 | ||
| 14 | class Event : public WaitObject { | 14 | class Event final : public WaitObject { |
| 15 | public: | 15 | public: |
| 16 | /** | 16 | /** |
| 17 | * Creates an event | 17 | * Creates an event |
diff --git a/src/core/hle/kernel/mutex.h b/src/core/hle/kernel/mutex.h index a6d822e60..1e69528f1 100644 --- a/src/core/hle/kernel/mutex.h +++ b/src/core/hle/kernel/mutex.h | |||
| @@ -14,7 +14,7 @@ namespace Kernel { | |||
| 14 | 14 | ||
| 15 | class Thread; | 15 | class Thread; |
| 16 | 16 | ||
| 17 | class Mutex : public WaitObject { | 17 | class Mutex final : public WaitObject { |
| 18 | public: | 18 | public: |
| 19 | /** | 19 | /** |
| 20 | * Creates a mutex. | 20 | * Creates a mutex. |
diff --git a/src/core/hle/kernel/semaphore.h b/src/core/hle/kernel/semaphore.h index b7f22b86e..9bb404ab6 100644 --- a/src/core/hle/kernel/semaphore.h +++ b/src/core/hle/kernel/semaphore.h | |||
| @@ -13,7 +13,7 @@ | |||
| 13 | 13 | ||
| 14 | namespace Kernel { | 14 | namespace Kernel { |
| 15 | 15 | ||
| 16 | class Semaphore : public WaitObject { | 16 | class Semaphore final : public WaitObject { |
| 17 | public: | 17 | public: |
| 18 | /** | 18 | /** |
| 19 | * Creates a semaphore. | 19 | * Creates a semaphore. |
diff --git a/src/core/hle/kernel/shared_memory.h b/src/core/hle/kernel/shared_memory.h index eb063d39d..f9ae23e93 100644 --- a/src/core/hle/kernel/shared_memory.h +++ b/src/core/hle/kernel/shared_memory.h | |||
| @@ -23,7 +23,7 @@ enum class MemoryPermission : u32 { | |||
| 23 | DontCare = (1u << 28) | 23 | DontCare = (1u << 28) |
| 24 | }; | 24 | }; |
| 25 | 25 | ||
| 26 | class SharedMemory : public Object { | 26 | class SharedMemory final : public Object { |
| 27 | public: | 27 | public: |
| 28 | /** | 28 | /** |
| 29 | * Creates a shared memory object | 29 | * Creates a shared memory object |
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h index 5fab1ab58..d6299364a 100644 --- a/src/core/hle/kernel/thread.h +++ b/src/core/hle/kernel/thread.h | |||
| @@ -40,7 +40,7 @@ enum ThreadStatus { | |||
| 40 | 40 | ||
| 41 | namespace Kernel { | 41 | namespace Kernel { |
| 42 | 42 | ||
| 43 | class Thread : public WaitObject { | 43 | class Thread final : public WaitObject { |
| 44 | public: | 44 | public: |
| 45 | static ResultVal<SharedPtr<Thread>> Create(std::string name, VAddr entry_point, s32 priority, | 45 | static ResultVal<SharedPtr<Thread>> Create(std::string name, VAddr entry_point, s32 priority, |
| 46 | u32 arg, s32 processor_id, VAddr stack_top, u32 stack_size); | 46 | u32 arg, s32 processor_id, VAddr stack_top, u32 stack_size); |
| @@ -115,7 +115,6 @@ public: | |||
| 115 | bool idle = false; | 115 | bool idle = false; |
| 116 | 116 | ||
| 117 | private: | 117 | private: |
| 118 | |||
| 119 | Thread() = default; | 118 | Thread() = default; |
| 120 | }; | 119 | }; |
| 121 | 120 | ||
diff --git a/src/core/hle/kernel/timer.h b/src/core/hle/kernel/timer.h index 24552b4b9..c45e79954 100644 --- a/src/core/hle/kernel/timer.h +++ b/src/core/hle/kernel/timer.h | |||
| @@ -11,7 +11,7 @@ | |||
| 11 | 11 | ||
| 12 | namespace Kernel { | 12 | namespace Kernel { |
| 13 | 13 | ||
| 14 | class Timer : public WaitObject { | 14 | class Timer final : public WaitObject { |
| 15 | public: | 15 | public: |
| 16 | /** | 16 | /** |
| 17 | * Creates a timer | 17 | * Creates a timer |