mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
nptl: Move core condition variable functions into libc
Onl pthread_cond_clockwait did not have a forwarder, so it needs a new symbol version. Some complications arise due to the need to supply hidden aliases, GLIBC_PRIVATE exports (for the C11 condition variable implementation that still remains in libpthread) and 64-bit time_t stubs. pthread_cond_broadcast, pthread_cond_signal, pthread_cond_timedwait, pthread_cond_wait, pthread_cond_clockwait have been moved using scripts/move-symbol-to-libc.py. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
@ -36,7 +36,7 @@
|
||||
G1. We don't need to do all these steps if there are no waiters in G1
|
||||
and/or G2. See __pthread_cond_signal for further details. */
|
||||
int
|
||||
__pthread_cond_broadcast (pthread_cond_t *cond)
|
||||
___pthread_cond_broadcast (pthread_cond_t *cond)
|
||||
{
|
||||
LIBC_PROBE (cond_broadcast, 1, cond);
|
||||
|
||||
@ -87,6 +87,8 @@ __pthread_cond_broadcast (pthread_cond_t *cond)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
versioned_symbol (libpthread, __pthread_cond_broadcast, pthread_cond_broadcast,
|
||||
GLIBC_2_3_2);
|
||||
versioned_symbol (libc, ___pthread_cond_broadcast,
|
||||
pthread_cond_broadcast, GLIBC_2_3_2);
|
||||
libc_hidden_ver (___pthread_cond_broadcast, __pthread_cond_broadcast)
|
||||
versioned_symbol (libc, ___pthread_cond_broadcast,
|
||||
__pthread_cond_broadcast, GLIBC_PRIVATE);
|
||||
|
Reference in New Issue
Block a user