aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/resource_limit.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-04-20 21:26:54 -0400
committerGitHub <noreply@github.com>2018-04-20 21:26:54 -0400
commit1723b4d8d477a1b9ee3f4ef4d6dcdce9af9521f4 (patch)
tree6e829a57945033a156e0fafed9ce53fe341f6a12 /src/core/hle/kernel/resource_limit.h
parent2e7ce96b1d55df535ab7e16efb711d9bdf82cfd1 (diff)
parentbec05db746edc88531bb8689f5143cf594c85836 (diff)
Merge pull request #372 from lioncash/enum
resource_limit: Make ResourceTypes an enum class
Diffstat (limited to 'src/core/hle/kernel/resource_limit.h')
-rw-r--r--src/core/hle/kernel/resource_limit.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/core/hle/kernel/resource_limit.h b/src/core/hle/kernel/resource_limit.h
index 1a0ca11f1..cc689a27a 100644
--- a/src/core/hle/kernel/resource_limit.h
+++ b/src/core/hle/kernel/resource_limit.h
@@ -16,17 +16,17 @@ enum class ResourceLimitCategory : u8 {
OTHER = 3
};
-enum ResourceTypes {
- PRIORITY = 0,
- COMMIT = 1,
- THREAD = 2,
- EVENT = 3,
- MUTEX = 4,
- SEMAPHORE = 5,
- TIMER = 6,
- SHARED_MEMORY = 7,
- ADDRESS_ARBITER = 8,
- CPU_TIME = 9,
+enum class ResourceType {
+ Priority = 0,
+ Commit = 1,
+ Thread = 2,
+ Event = 3,
+ Mutex = 4,
+ Semaphore = 5,
+ Timer = 6,
+ SharedMemory = 7,
+ AddressArbiter = 8,
+ CPUTime = 9,
};
class ResourceLimit final : public Object {
@@ -60,14 +60,14 @@ public:
* @param resource Requested resource type
* @returns The current value of the resource type
*/
- s32 GetCurrentResourceValue(u32 resource) const;
+ s32 GetCurrentResourceValue(ResourceType resource) const;
/**
* Gets the max value for the specified resource.
* @param resource Requested resource type
* @returns The max value of the resource type
*/
- u32 GetMaxResourceValue(u32 resource) const;
+ u32 GetMaxResourceValue(ResourceType resource) const;
/// Name of resource limit object.
std::string name;