mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-26 20:51:11 +00:00
918311a3a3
This patch adds the cnd_* definitions from C11 threads (ISO/IEC 9899:2011), more specifically cnd_broadcast, cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, cnd_wait, and required types. Mostly of the definitions are composed based on POSIX conterparts, and cnd_t is also based on internal pthreads fields, but with distinct internal layout to avoid possible issues with code interchange (such as trying to pass POSIX structure on C11 functions and to avoid inclusion of pthread.h). The idea is to make it possible to share POSIX internal implementation for mostly of the code making adjust where only required. Checked with a build for all major ABI (aarch64-linux-gnu, alpha-linux-gnu, arm-linux-gnueabi, i386-linux-gnu, ia64-linux-gnu, m68k-linux-gnu, microblaze-linux-gnu [1], mips{64}-linux-gnu, nios2-linux-gnu, powerpc{64le}-linux-gnu, s390{x}-linux-gnu, sparc{64}-linux-gnu, and x86_64-linux-gnu). Also ran a full check on aarch64-linux-gnu, x86_64-linux-gnu, i686-linux-gnu, arm-linux-gnueabhf, and powerpc64le-linux-gnu. [BZ #14092] * conform/data/threads.h-data (cnd_t): New type. (cnd_init): New function. (cnd_signal): Likewise. (cnd_broadcast): Likewise. (cnd_wait): Likewise. (cnd_timedwait): Likewise. (cnd_destroy): Likewise. * nptl/Makefile (libpthread-routines): Add cnd_broadcast, cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait object. * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise. * nptl/cnd_broadcast.c: New file. * nptl/cnd_destroy.c: Likewise. * nptl/cnd_init.c: Likewise. * nptl/cnd_signal.c: Likewise. * nptl/cnd_timedwait.c: Likewise. * nptl/cnd_wait.c: Likewise. * sysdeps/nptl/threads.h (cnd_t): New type. (cnd_init): New prototype. (cnd_signa): Likewise. (cnd_broadcast): Likewise. (cnd_wait): Likewise. (cnd_timedwait): Likewise. (cnd_destroy): Likewise. |
||
---|---|---|
.. | ||
arpa | ||
net | ||
netinet | ||
sys | ||
aio.h-data | ||
assert.h-data | ||
complex.h-data | ||
cpio.h-data | ||
ctype.h-data | ||
dirent.h-data | ||
dlfcn.h-data | ||
errno.h-data | ||
fcntl.h-data | ||
fenv.h-data | ||
float.h-data | ||
fmtmsg.h-data | ||
fnmatch.h-data | ||
ftw.h-data | ||
glob.h-data | ||
grp.h-data | ||
iconv.h-data | ||
inttypes.h-data | ||
iso646.h-data | ||
langinfo.h-data | ||
libgen.h-data | ||
limits.h-data | ||
locale.h-data | ||
math.h-data | ||
monetary.h-data | ||
mqueue.h-data | ||
ndbm.h-data | ||
netdb.h-data | ||
nl_types.h-data | ||
poll.h-data | ||
pthread.h-data | ||
pwd.h-data | ||
regex.h-data | ||
sched.h-data | ||
search.h-data | ||
semaphore.h-data | ||
setjmp.h-data | ||
signal.h-data | ||
spawn.h-data | ||
stdalign.h-data | ||
stdarg.h-data | ||
stdbool.h-data | ||
stddef.h-data | ||
stdint.h-data | ||
stdio.h-data | ||
stdlib.h-data | ||
stdnoreturn.h-data | ||
string.h-data | ||
strings.h-data | ||
stropts.h-data | ||
syslog.h-data | ||
tar.h-data | ||
termios.h-data | ||
tgmath.h-data | ||
threads.h-data | ||
time.h-data | ||
uchar.h-data | ||
ucontext.h-data | ||
ulimit.h-data | ||
unistd.h-data | ||
utime.h-data | ||
utmpx.h-data | ||
varargs.h-data | ||
wchar.h-data | ||
wctype.h-data | ||
wordexp.h-data |