wasi-libc icon indicating copy to clipboard operation
wasi-libc copied to clipboard

Enable C11 threads on top of pthreads?

Open TerrorJack opened this issue 2 years ago • 4 comments

It seems the C11 threads symbols are pretty incomplete in the current pthreads build (e.g. there isn't even thrd_create). Is this an oversight, or is there some technical difficulty to enable these functions?

TerrorJack avatar Feb 08 '23 13:02 TerrorJack

I think we just haven't gotten around to adding them yet. We've been added thread source piecemeal. If you'd like to create a PR to add the C11 API, I doubt it would be controversial.

sbc100 avatar Feb 08 '23 16:02 sbc100

(Out of interest, have you seen software in the wild using these APIs? They were added to emscripten for completeness but I don't know for sure if anyone is actually using them).

sbc100 avatar Feb 08 '23 17:02 sbc100

Any help on this is appreciated!

abrown avatar Feb 08 '23 18:02 abrown

Yup, I'll take a look and try to offer a patch to add them.

TerrorJack avatar Feb 16 '23 10:02 TerrorJack