Kernel: Replace GetStaticHandleType by HANDLE_TYPE constants
This commit is contained in:
parent
73fba22c01
commit
23f2142009
8 changed files with 15 additions and 15 deletions
|
@ -26,8 +26,8 @@ public:
|
|||
std::string GetName() const override { return name; }
|
||||
std::string GetTypeName() const override { return "Thread"; }
|
||||
|
||||
static Kernel::HandleType GetStaticHandleType() { return Kernel::HandleType::Thread; }
|
||||
Kernel::HandleType GetHandleType() const override { return Kernel::HandleType::Thread; }
|
||||
static const HandleType HANDLE_TYPE = HandleType::Thread;
|
||||
HandleType GetHandleType() const override { return HANDLE_TYPE; }
|
||||
|
||||
inline bool IsRunning() const { return (status & THREADSTATUS_RUNNING) != 0; }
|
||||
inline bool IsStopped() const { return (status & THREADSTATUS_DORMANT) != 0; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue