]> git.proxmox.com Git - wasi-libc.git/commitdiff
threads: add `pthread_attr_setdetachstate` (#382)
authorAndrew Brown <andrew.brown@intel.com>
Thu, 12 Jan 2023 03:47:44 +0000 (19:47 -0800)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 2 Aug 2023 10:24:08 +0000 (12:24 +0200)
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
expected/wasm32-wasi-pthread/defined-symbols.txt

index fe17d02563349c44804221790773c939aa10b747..21b91e0ee95739c3d551c2de1b98042686f0c05e 100644 (file)
--- 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 \
index 080c80fc7c56d66545e0a38b7e17afbace363206..8dba0f18aee226cea00566c628c03cab709a63b0 100644 (file)
@@ -984,6 +984,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