diff options
| author | gfleury <gfleury@disroot.org> | 2024-12-31 15:49:08 +0200 |
|---|---|---|
| committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-01-02 01:20:20 +0100 |
| commit | 4371b11c86d160091ccdb56b974d24f41a5c0958 (patch) | |
| tree | 54064f318816216141498ca3c85155d5bc713f5f /sysdeps/htl/pthreadP.h | |
| parent | 1e5b39a5e05c82eb2eef38b1982c756e2237cd90 (diff) | |
| download | glibc-4371b11c86d160091ccdb56b974d24f41a5c0958.tar.xz glibc-4371b11c86d160091ccdb56b974d24f41a5c0958.zip | |
htl: move pthread_mutexattr_{setrobust, setrobust_np}, pthread_mutexattr_{getrobust, getrobust_np} into libc.
Message-ID: <20241231134909.1166440-8-gfleury@disroot.org>
Diffstat (limited to 'sysdeps/htl/pthreadP.h')
| -rw-r--r-- | sysdeps/htl/pthreadP.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sysdeps/htl/pthreadP.h b/sysdeps/htl/pthreadP.h index b5ff56227b..d08a0ca7dd 100644 --- a/sysdeps/htl/pthreadP.h +++ b/sysdeps/htl/pthreadP.h @@ -46,6 +46,22 @@ extern int __pthread_mutexattr_setpshared(pthread_mutexattr_t *__attr, int __pshared); libc_hidden_proto (__pthread_mutexattr_setpshared) +/* Get the robustness flag of the mutex attribute ATTR. */ +extern int __pthread_mutexattr_getrobust (const pthread_mutexattr_t *__attr, + int *__robustness); +libc_hidden_proto (__pthread_mutexattr_getrobust) +extern int __pthread_mutexattr_getrobust_np (const pthread_mutexattr_t *__attr, + int *__robustness); +libc_hidden_proto (__pthread_mutexattr_getrobust_np) +extern int __pthread_mutexattr_setrobust_np (pthread_mutexattr_t *__attr, + int __robustness); +libc_hidden_proto (__pthread_mutexattr_setrobust_np) + +/* Set the robustness flag of the mutex attribute ATTR. */ +extern int __pthread_mutexattr_setrobust (pthread_mutexattr_t *__attr, + int __robustness); +libc_hidden_proto (__pthread_mutexattr_setrobust) + extern int __pthread_mutexattr_getprotocol(const pthread_mutexattr_t *__restrict __attr, int *__restrict __protocol); libc_hidden_proto (__pthread_mutexattr_getprotocol) |
