os: refactor/rewrite entire namespace.

This commit is contained in:
Michael Scire committed 2020-04-08 02:21:35 -07:00
1 parent 6193283f03
commit 065485b971
181 files changed
+5353 -1929

No files matched your search

@@ -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 {