yuzu-emu
/
yuzu
Archived
1
0
Fork 0

Kernel: Mark all appropriate kernel objects as "final"

This commit is contained in:
Yuri Kunde Schlesner 2015-01-27 02:40:21 -02:00
parent 58b544db99
commit d917a9bf77
7 changed files with 7 additions and 8 deletions

View File

@ -26,7 +26,7 @@ enum class ArbitrationType : u32 {
DecrementAndWaitIfLessThanWithTimeout,
};
class AddressArbiter : public Object {
class AddressArbiter final : public Object {
public:
/**
* Creates an address arbiter.

View File

@ -11,7 +11,7 @@
namespace Kernel {
class Event : public WaitObject {
class Event final : public WaitObject {
public:
/**
* Creates an event

View File

@ -14,7 +14,7 @@ namespace Kernel {
class Thread;
class Mutex : public WaitObject {
class Mutex final : public WaitObject {
public:
/**
* Creates a mutex.

View File

@ -13,7 +13,7 @@
namespace Kernel {
class Semaphore : public WaitObject {
class Semaphore final : public WaitObject {
public:
/**
* Creates a semaphore.

View File

@ -23,7 +23,7 @@ enum class MemoryPermission : u32 {
DontCare = (1u << 28)
};
class SharedMemory : public Object {
class SharedMemory final : public Object {
public:
/**
* Creates a shared memory object

View File

@ -40,7 +40,7 @@ enum ThreadStatus {
namespace Kernel {
class Thread : public WaitObject {
class Thread final : public WaitObject {
public:
static ResultVal<SharedPtr<Thread>> Create(std::string name, VAddr entry_point, s32 priority,
u32 arg, s32 processor_id, VAddr stack_top, u32 stack_size);
@ -115,7 +115,6 @@ public:
bool idle = false;
private:
Thread() = default;
};

View File

@ -11,7 +11,7 @@
namespace Kernel {
class Timer : public WaitObject {
class Timer final : public WaitObject {
public:
/**
* Creates a timer