From 283bff7fd456e6bf576725a8cab71899aa3dfdae Mon Sep 17 00:00:00 2001 From: Pranav P Date: Tue, 20 Jan 2026 19:18:35 +0530 Subject: [PATCH] Fix endianness issue which fixes deadlock --- src/threadpool-atomics.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/threadpool-atomics.h b/src/threadpool-atomics.h index 514224c..cda87c5 100644 --- a/src/threadpool-atomics.h +++ b/src/threadpool-atomics.h @@ -142,7 +142,7 @@ static inline void pthreadpool_thread_join( * i.e. two or more atomic variables sharing the same cache line will block * each other during atomic operations. */ -typedef atomic_uint_fast32_t PTHREADPOOL_CACHELINE_ALIGNED +typedef atomic_uint_least32_t PTHREADPOOL_CACHELINE_ALIGNED pthreadpool_atomic_uint32_t; typedef atomic_int_least32_t PTHREADPOOL_CACHELINE_ALIGNED pthreadpool_atomic_int32_t;