htl: move __pthread_default_condattr into libc.

Signed-off-by: gfleury <gfleury@disroot.org>
Message-ID: <20241126205329.2215295-3-gfleury@disroot.org>
This commit is contained in:
gfleury 2024-11-26 22:53:24 +02:00 committed by Samuel Thibault
parent c982918e3e
commit 7ded100d36
4 changed files with 4 additions and 1 deletions

View File

@ -92,7 +92,6 @@ libpthread-routines := \
pt-rwlock-timedrdlock \
pt-rwlock-timedwrlock \
pt-rwlock-unlock \
pt-cond \
pt-condattr-init \
pt-condattr-getclock \
pt-condattr-getpshared \
@ -205,6 +204,7 @@ routines := \
pt-attr-setstack \
pt-attr-setstackaddr \
pt-attr-setstacksize \
pt-cond \
pt-condattr-destroy \
pt-getschedparam \
pt-nthreads \

View File

@ -83,6 +83,7 @@ libc {
__pthread_attr_setstacksize;
__pthread_attr_setstackaddr;
__pthread_attr_setstack;
__pthread_default_condattr;
}
}

View File

@ -329,6 +329,7 @@ extern const struct __pthread_rwlockattr __pthread_default_rwlockattr;
/* Default condition attributes. */
extern const struct __pthread_condattr __pthread_default_condattr;
libc_hidden_proto (__pthread_default_condattr)
/* Semaphore encoding.
See nptl implementation for the details. */

View File

@ -25,3 +25,4 @@ const struct __pthread_condattr __pthread_default_condattr = {
__pshared: PTHREAD_PROCESS_PRIVATE,
__clock: CLOCK_REALTIME
};
libc_hidden_data_def (__pthread_default_condattr)