This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RFC][PATCH 1/3][BZ #11588] pi-condvars: add protocol support to pthread_condattr_t
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Gratian Crisan <gratian dot crisan at ni dot com>
- Cc: <libc-alpha at sourceware dot org>, Darren Hart <dvhart at linux dot intel dot com>, Carlos O'Donell <carlos at redhat dot com>, Jeff Law <law at redhat dot com>, Scot Salmon <scot dot salmon at ni dot com>, Siddhesh Poyarekar <spoyarek at redhat dot com>, Thomas Gleixner <tglx at linutronix dot de>, Torvald Riegel <triegel at redhat dot com>, Clark Williams <williams at redhat dot com>
- Date: Fri, 18 Oct 2013 00:38:15 +0000
- Subject: Re: [RFC][PATCH 1/3][BZ #11588] pi-condvars: add protocol support to pthread_condattr_t
- Authentication-results: sourceware.org; auth=none
- References: <OF5EF2483E dot 7332833F-ON86257C07 dot 006EACAB-86257C07 dot 00767886 at ni dot com>
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