musl/arch
Rich Felker b7cf71a190 add threads.h and needed per-arch types for mtx_t and cnd_t
based on patch by Jens Gustedt.

mtx_t and cnd_t are defined in such a way that they are formally
"compatible types" with pthread_mutex_t and pthread_cond_t,
respectively, when accessed from a different translation unit. this
makes it possible to implement the C11 functions using the pthread
functions (which will dereference them with the pthread types) without
having to use the same types, which would necessitate either namespace
violations (exposing pthread type names in threads.h) or incompatible
changes to the C++ name mangling ABI for the pthread types.

for the rest of the types, things are much simpler; using identical
types is possible without any namespace considerations.
2014-09-06 20:44:30 -04:00
..
arm add threads.h and needed per-arch types for mtx_t and cnd_t 2014-09-06 20:44:30 -04:00
i386 add threads.h and needed per-arch types for mtx_t and cnd_t 2014-09-06 20:44:30 -04:00
microblaze add threads.h and needed per-arch types for mtx_t and cnd_t 2014-09-06 20:44:30 -04:00
mips add threads.h and needed per-arch types for mtx_t and cnd_t 2014-09-06 20:44:30 -04:00
or1k add threads.h and needed per-arch types for mtx_t and cnd_t 2014-09-06 20:44:30 -04:00
powerpc add threads.h and needed per-arch types for mtx_t and cnd_t 2014-09-06 20:44:30 -04:00
sh add threads.h and needed per-arch types for mtx_t and cnd_t 2014-09-06 20:44:30 -04:00
x32 add threads.h and needed per-arch types for mtx_t and cnd_t 2014-09-06 20:44:30 -04:00
x86_64 add threads.h and needed per-arch types for mtx_t and cnd_t 2014-09-06 20:44:30 -04:00