os: refactor/rewrite entire namespace.

This commit is contained in:
Michael Scire 2020-04-08 02:21:35 -07:00
parent 6193283f03
commit 065485b971
181 changed files with 5353 additions and 1929 deletions

View file

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