Skip to content

Commit 4510654

Browse files
authored
threads: add pthread_attr_setdetachstate (#382)
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.
1 parent 04431e5 commit 4510654

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ LIBC_TOP_HALF_MUSL_SOURCES += \
210210
thread/pthread_attr_get.c \
211211
thread/pthread_attr_init.c \
212212
thread/pthread_attr_setstack.c \
213+
thread/pthread_attr_setdetachstate.c \
213214
thread/pthread_attr_setstacksize.c \
214215
thread/pthread_barrier_destroy.c \
215216
thread/pthread_barrier_init.c \

expected/wasm32-wasi-pthread/defined-symbols.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -984,6 +984,7 @@ pthread_attr_getscope
984984
pthread_attr_getstack
985985
pthread_attr_getstacksize
986986
pthread_attr_init
987+
pthread_attr_setdetachstate
987988
pthread_attr_setstack
988989
pthread_attr_setstacksize
989990
pthread_barrier_destroy

0 commit comments

Comments
 (0)