aboutsummaryrefslogtreecommitdiff
path: root/src/threading_osx.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/threading_osx.h')
-rw-r--r--src/threading_osx.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/threading_osx.h b/src/threading_osx.h
index 93da8c3..b47d2f6 100644
--- a/src/threading_osx.h
+++ b/src/threading_osx.h
@@ -11,9 +11,10 @@
11 11
12#define SYSCTL_CORE_COUNT "machdep.cpu.core_count" 12#define SYSCTL_CORE_COUNT "machdep.cpu.core_count"
13 13
14typedef struct cpu_set { 14struct cpu_set_t
15{
15 uint32_t count; 16 uint32_t count;
16} cpu_set_t; 17} ;
17 18
18static inline void CPU_ZERO(cpu_set_t *cs) { cs->count = 0; } 19static inline void CPU_ZERO(cpu_set_t *cs) { cs->count = 0; }
19static inline void CPU_SET(int num, cpu_set_t *cs) { cs->count |= (1 << num); } 20static inline void CPU_SET(int num, cpu_set_t *cs) { cs->count |= (1 << num); }