From f73bcd72f70647f68da5390447e400e7fd3e912f Mon Sep 17 00:00:00 2001 From: Quentin Khan Date: Fri, 10 Oct 2025 09:46:51 -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: 817682425 --- 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 89ea3d4..e27c59b 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, - int(fun)(void*), void* arg) { + void*(fun)(void*), void* arg) { thrd_create(thread, fun, arg); } static inline void pthreadpool_thread_join(pthreadpool_thread_t thread,