aboutsummaryrefslogtreecommitdiff
path: root/src/threading_osx.h
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-03-20 17:34:49 +0100
committerBenoit Germain <benoit.germain@ubisoft.com>2024-03-20 17:34:49 +0100
commit9b05d1d26d358bf836a7ad0b23c244836cb30a06 (patch)
tree74d28be5dd16d4e139a630fd65e58df58de93ced /src/threading_osx.h
parentdf1113151aff47bfd1b401bf8d06a3fe8f6b9115 (diff)
downloadlanes-9b05d1d26d358bf836a7ad0b23c244836cb30a06.tar.gz
lanes-9b05d1d26d358bf836a7ad0b23c244836cb30a06.tar.bz2
lanes-9b05d1d26d358bf836a7ad0b23c244836cb30a06.zip
C++ migration: removed most typedef, removed uint_t
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); }