Skip to content

Commit c2d4845

Browse files
committed
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: 817482615
1 parent b8279c3 commit c2d4845

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/threadpool-atomics.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ static inline void pthreadpool_cond_broadcast(pthreadpool_cond_t* cond) {
125125
cnd_broadcast(cond);
126126
}
127127
static inline void pthreadpool_thread_create(pthreadpool_thread_t* thread,
128-
void*(fun)(void*), void* arg) {
128+
int(fun)(void*), void* arg) {
129129
thrd_create(thread, fun, arg);
130130
}
131131
static inline void pthreadpool_thread_join(pthreadpool_thread_t thread,

0 commit comments

Comments
 (0)