diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-03-20 17:34:49 +0100 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-03-20 17:34:49 +0100 |
commit | 9b05d1d26d358bf836a7ad0b23c244836cb30a06 (patch) | |
tree | 74d28be5dd16d4e139a630fd65e58df58de93ced /src/threading_osx.h | |
parent | df1113151aff47bfd1b401bf8d06a3fe8f6b9115 (diff) | |
download | lanes-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.h | 5 |
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 | ||
14 | typedef struct cpu_set { | 14 | struct cpu_set_t |
15 | { | ||
15 | uint32_t count; | 16 | uint32_t count; |
16 | } cpu_set_t; | 17 | } ; |
17 | 18 | ||
18 | static inline void CPU_ZERO(cpu_set_t *cs) { cs->count = 0; } | 19 | static inline void CPU_ZERO(cpu_set_t *cs) { cs->count = 0; } |
19 | static inline void CPU_SET(int num, cpu_set_t *cs) { cs->count |= (1 << num); } | 20 | static inline void CPU_SET(int num, cpu_set_t *cs) { cs->count |= (1 << num); } |