os: refactor/rewrite entire namespace.
This commit is contained in:
@@ -28,8 +28,14 @@ namespace ams::svc {
|
||||
using Handle = u32;
|
||||
#endif
|
||||
|
||||
enum {
|
||||
HandleWaitMask = (1u << 30),
|
||||
};
|
||||
|
||||
constexpr inline size_t MaxWaitSynchronizationHandleCount = 0x40;
|
||||
|
||||
constexpr inline s64 WaitInfinite = -1;
|
||||
|
||||
enum PseudoHandle : Handle {
|
||||
CurrentThread = 0xFFFF8000,
|
||||
CurrentProcess = 0xFFFF8001,
|
||||
|
||||
@@ -279,8 +279,14 @@ namespace ams::svc {
|
||||
ThreadActivity_Paused = 1,
|
||||
};
|
||||
|
||||
constexpr s32 LowestThreadPriority = 63;
|
||||
constexpr s32 HighestThreadPriority = 0;
|
||||
constexpr inline s32 IdealCoreDontCare = -1;
|
||||
constexpr inline s32 IdealCoreUseProcessValue = -2;
|
||||
constexpr inline s32 IdealCoreNoUpdate = -3;
|
||||
|
||||
constexpr inline s32 LowestThreadPriority = 63;
|
||||
constexpr inline s32 HighestThreadPriority = 0;
|
||||
|
||||
constexpr inline s32 SystemThreadPriorityHighest = 16;
|
||||
|
||||
/* Process types. */
|
||||
enum ProcessInfoType : u32 {
|
||||
|
||||
Reference in New Issue
Block a user