[RFC][PATCH 1/3][BZ #11588] pi-condvars: add protocol support to pthread_condattr_t
Joseph S. Myers
joseph@codesourcery.com
Fri Oct 18 00:38:00 GMT 2013
On Thu, 17 Oct 2013, Gratian Crisan wrote:
> used. A new API, pthread_condattr_setprotocol_np() and
> pthread_condattr_getprotocol_np() allow the user to create a
New APIs should be documented in threads.texi.
> 2013-10-16 Gratian Crisan <gratian.crisan@ni.com>
>
> [BZ #11588]
> * Versions.def (libpthread): Add GLIBC_2.19.
> * ports/sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist:
> Update.
> * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
> * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
Each architecture port in ports/ has its own ChangeLog file. And all
relevant ABI lists should be updated, not just a selected subset.
> +int
> +pthread_condattr_setprotocol_np (attr, protocol)
> + pthread_condattr_t *attr;
> + int protocol;
No new old-style function definitions, please.
> +/* Get the protocol flag of the condition variable attribute ATTR. */
> +extern int pthread_condattr_getprotocol_np (__const pthread_condattr_t *
> + __restrict __attr,
> + int *__restrict __protocol)
> + __THROW __nonnull ((1, 2));
> +
> +/* Set the cond protocol attribute in ATTR to protocol (one of
> + PTHREAD_PRIO_NONE, PTHREAD_PRIO_INHERIT or PTHREAD_PRIO_PROTECT). */
> +extern int pthread_condattr_setprotocol_np (pthread_condattr_t *__attr,
> + int __protocol)
> + __THROW __nonnull ((1));
New functions that aren't in any standard should only be declared if
__USE_GNU.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list