Expand thread affinity mask to u64

Also fix and note __APPLE__ path.
This commit is contained in:
Nekotekina 2019-07-20 15:57:23 +03:00
parent e2574ff100
commit 4e4c896136
2 changed files with 19 additions and 11 deletions

View file

@ -258,13 +258,13 @@ public:
static void detect_cpu_layout();
// Returns a core affinity mask. Set whether to generate the high priority set or not
static u16 get_affinity_mask(thread_class group);
static u64 get_affinity_mask(thread_class group);
// Sets the native thread priority
static void set_native_priority(int priority);
// Sets the preferred affinity mask for this thread
static void set_thread_affinity_mask(u16 mask);
static void set_thread_affinity_mask(u64 mask);
// Spawn a detached named thread
template <typename F>