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

@ -17,8 +17,8 @@ public:
std::string GetTypeName() const override { return "Semaphore"; }
std::string GetName() const override { return name; }
static Kernel::HandleType GetStaticHandleType() { return Kernel::HandleType::Semaphore; }
Kernel::HandleType GetHandleType() const override { return Kernel::HandleType::Semaphore; }
static const HandleType HANDLE_TYPE = HandleType::Semaphore;
HandleType GetHandleType() const override { return HANDLE_TYPE; }
s32 max_count; ///< Maximum number of simultaneous holders the semaphore can have
s32 available_count; ///< Number of free slots left in the semaphore