We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5d2aeb commit 158292bCopy full SHA for 158292b
src/shims/lock.h
@@ -98,7 +98,8 @@ typedef pid_t dispatch_lock_owner;
98
#define DLOCK_OWNER_MASK ((dispatch_lock)FUTEX_TID_MASK)
99
#define DLOCK_WAITERS_BIT ((dispatch_lock)FUTEX_WAITERS)
100
#define DLOCK_FAILED_TRYLOCK_BIT ((dispatch_lock)FUTEX_OWNER_DIED)
101
-#define _dispatch_tid_self() ((dispatch_lock_owner)_dispatch_thread_port())
+#define _dispatch_tid_self() \
102
+ ((dispatch_lock_owner)(_dispatch_get_tsd_base()->tid))
103
104
DISPATCH_ALWAYS_INLINE
105
static inline bool
0 commit comments