Kernel: Replace GetStaticHandleType by HANDLE_TYPE constants

This commit is contained in:
Yuri Kunde Schlesner 2014-12-21 08:40:29 -02:00
parent 73fba22c01
commit 23f2142009
8 changed files with 15 additions and 15 deletions

View file

@ -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; }