From 5cc2eac9718257de5bbb14ea1104ff3073ce32eb Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Wed, 11 Jan 2023 15:21:38 -0800 Subject: [PATCH] threads: add `pthread_attr_setdetachstate` This API may not make a lot of sense in a WebAssembly world but it seemed helpful to include it, even if it doesn't have much effect. --- Makefile | 1 + expected/wasm32-wasi-pthread/defined-symbols.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/Makefile b/Makefile index f01300ddc..a0e7bd3fd 100644 --- a/Makefile +++ b/Makefile @@ -210,6 +210,7 @@ LIBC_TOP_HALF_MUSL_SOURCES += \ thread/pthread_attr_get.c \ thread/pthread_attr_init.c \ thread/pthread_attr_setstack.c \ + thread/pthread_attr_setdetachstate.c \ thread/pthread_attr_setstacksize.c \ thread/pthread_barrier_destroy.c \ thread/pthread_barrier_init.c \ diff --git a/expected/wasm32-wasi-pthread/defined-symbols.txt b/expected/wasm32-wasi-pthread/defined-symbols.txt index 6bd0fae4e..ee5a42c26 100644 --- a/expected/wasm32-wasi-pthread/defined-symbols.txt +++ b/expected/wasm32-wasi-pthread/defined-symbols.txt @@ -983,6 +983,7 @@ pthread_attr_getscope pthread_attr_getstack pthread_attr_getstacksize pthread_attr_init +pthread_attr_setdetachstate pthread_attr_setstack pthread_attr_setstacksize pthread_barrier_destroy