From f8b8db893d6224badc81720227695010735c961e Mon Sep 17 00:00:00 2001 From: XNNPACK Team Date: Fri, 10 Oct 2025 07:51:00 -0700 Subject: [PATCH] Update `pthreadpool_thread_create` function signature. `thrd_create` expects a thread function that returns an int. This will make sure the function signatures match. PiperOrigin-RevId: 817642575 --- 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 e27c59b..89ea3d4 100644 --- a/src/threadpool-atomics.h +++ b/src/threadpool-atomics.h @@ -125,7 +125,7 @@ static inline void pthreadpool_cond_broadcast(pthreadpool_cond_t* cond) { cnd_broadcast(cond); } static inline void pthreadpool_thread_create(pthreadpool_thread_t* thread, - void*(fun)(void*), void* arg) { + int(fun)(void*), void* arg) { thrd_create(thread, fun, arg); } static inline void pthreadpool_thread_join(pthreadpool_thread_t thread,