mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-15 06:00:05 +00:00
Kernel: Mark all appropriate kernel objects as "final"
This commit is contained in:
parent
58b544db99
commit
d917a9bf77
@ -26,7 +26,7 @@ enum class ArbitrationType : u32 {
|
|||||||
DecrementAndWaitIfLessThanWithTimeout,
|
DecrementAndWaitIfLessThanWithTimeout,
|
||||||
};
|
};
|
||||||
|
|
||||||
class AddressArbiter : public Object {
|
class AddressArbiter final : public Object {
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Creates an address arbiter.
|
* Creates an address arbiter.
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
namespace Kernel {
|
namespace Kernel {
|
||||||
|
|
||||||
class Event : public WaitObject {
|
class Event final : public WaitObject {
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Creates an event
|
* Creates an event
|
||||||
|
@ -14,7 +14,7 @@ namespace Kernel {
|
|||||||
|
|
||||||
class Thread;
|
class Thread;
|
||||||
|
|
||||||
class Mutex : public WaitObject {
|
class Mutex final : public WaitObject {
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Creates a mutex.
|
* Creates a mutex.
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
namespace Kernel {
|
namespace Kernel {
|
||||||
|
|
||||||
class Semaphore : public WaitObject {
|
class Semaphore final : public WaitObject {
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Creates a semaphore.
|
* Creates a semaphore.
|
||||||
|
@ -23,7 +23,7 @@ enum class MemoryPermission : u32 {
|
|||||||
DontCare = (1u << 28)
|
DontCare = (1u << 28)
|
||||||
};
|
};
|
||||||
|
|
||||||
class SharedMemory : public Object {
|
class SharedMemory final : public Object {
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Creates a shared memory object
|
* Creates a shared memory object
|
||||||
|
@ -40,7 +40,7 @@ enum ThreadStatus {
|
|||||||
|
|
||||||
namespace Kernel {
|
namespace Kernel {
|
||||||
|
|
||||||
class Thread : public WaitObject {
|
class Thread final : public WaitObject {
|
||||||
public:
|
public:
|
||||||
static ResultVal<SharedPtr<Thread>> Create(std::string name, VAddr entry_point, s32 priority,
|
static ResultVal<SharedPtr<Thread>> Create(std::string name, VAddr entry_point, s32 priority,
|
||||||
u32 arg, s32 processor_id, VAddr stack_top, u32 stack_size);
|
u32 arg, s32 processor_id, VAddr stack_top, u32 stack_size);
|
||||||
@ -115,7 +115,6 @@ public:
|
|||||||
bool idle = false;
|
bool idle = false;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
Thread() = default;
|
Thread() = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
namespace Kernel {
|
namespace Kernel {
|
||||||
|
|
||||||
class Timer : public WaitObject {
|
class Timer final : public WaitObject {
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Creates a timer
|
* Creates a timer
|
||||||
|
Loading…
Reference in New Issue
Block a user