Skip to content

Commit 2e6cc20

Browse files
committed
Try and get CI to pass
1 parent 522ea9c commit 2e6cc20

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

libc/src/__support/macros/attributes.h

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,16 @@
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

libc/src/__support/threads/mutex.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,6 @@
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

0 commit comments

Comments
 (0)