mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-12-23 18:02:46 -06:00
Kernel: Mark all appropriate kernel objects as "final"
This commit is contained in:
parent
58b544db99
commit
d917a9bf77
7 changed files with 7 additions and 8 deletions
|
@ -26,7 +26,7 @@ enum class ArbitrationType : u32 {
|
|||
DecrementAndWaitIfLessThanWithTimeout,
|
||||
};
|
||||
|
||||
class AddressArbiter : public Object {
|
||||
class AddressArbiter final : public Object {
|
||||
public:
|
||||
/**
|
||||
* Creates an address arbiter.
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
namespace Kernel {
|
||||
|
||||
class Event : public WaitObject {
|
||||
class Event final : public WaitObject {
|
||||
public:
|
||||
/**
|
||||
* Creates an event
|
||||
|
|
|
@ -14,7 +14,7 @@ namespace Kernel {
|
|||
|
||||
class Thread;
|
||||
|
||||
class Mutex : public WaitObject {
|
||||
class Mutex final : public WaitObject {
|
||||
public:
|
||||
/**
|
||||
* Creates a mutex.
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
namespace Kernel {
|
||||
|
||||
class Semaphore : public WaitObject {
|
||||
class Semaphore final : public WaitObject {
|
||||
public:
|
||||
/**
|
||||
* Creates a semaphore.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
namespace Kernel {
|
||||
|
||||
class Timer : public WaitObject {
|
||||
class Timer final : public WaitObject {
|
||||
public:
|
||||
/**
|
||||
* Creates a timer
|
||||
|
|
Loading…
Reference in a new issue