File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 2828#define LIBC_INLINE_ASM __asm__ __volatile__
2929#define LIBC_UNUSED __attribute__ ((unused))
3030
31- #ifdef LIBC_TARGET_ARCH_IS_GPU
31+ // Uses the platform specific specialization
32+ #define LIBC_THREAD_MODE_PLATFORM 0
33+
34+ // Mutex guards nothing, used in single-threaded implementations
35+ #define LIBC_THREAD_MODE_SINGLE 1
36+
37+ // Vendor provides implementation
38+ #define LIBC_THREAD_MODE_EXTERNAL 2
39+
40+ #if LIBC_THREAD_MODE == LIBC_THREAD_MODE_SINGLE
3241#define LIBC_THREAD_LOCAL
3342#else
3443#define LIBC_THREAD_LOCAL thread_local
Original file line number Diff line number Diff line change 1212#include " src/__support/macros/attributes.h"
1313#include " src/__support/macros/config.h"
1414
15- // Uses the platform specific specialization
16- #define LIBC_THREAD_MODE_PLATFORM 0
17-
18- // Mutex guards nothing, used in single-threaded implementations
19- #define LIBC_THREAD_MODE_SINGLE 1
20-
21- // Vendor provides implementation
22- #define LIBC_THREAD_MODE_EXTERNAL 2
23-
2415#if !defined(LIBC_THREAD_MODE)
2516#error LIBC_THREAD_MODE is undefined
2617#endif // LIBC_THREAD_MODE
You can’t perform that action at this time.
0 commit comments