[PATCH] nptl: Rewrite cancellation macros
Siddhesh Poyarekar
siddhesh@redhat.com
Thu Jun 4 20:07:00 GMT 2015
On Wed, May 20, 2015 at 11:10:37AM -0300, Adhemerval Zanella wrote:
> Hi
>
> This patch is another of the required adjustments for the fix for bz12683
> (Race conditions in pthread cancellation) and the idea is to remove
> LIBC_CANCEL_ASYNC/LIBC_CANCEL_RESET explicit usage.
>
> This patch changes the way cancellation entrypoints are defined to
> instead call the macro SYSCALL_CANCEL. An usual cancellation definition
> is defined as:
>
> if (SINGLE_THREAD_P)
> return INLINE_SYSCALL (syscall, NARGS, args...)
>
> int oldtype = LIBC_CANCEL_ASYNC ();
>
> return INLINE_SYSCALL (syscall, NARGS, args...)
>
> LIBC_CANCEL_RESET (oldtype);
>
> And it is rewrited as just:
>
> SYSCALL_CANCEL (syscall, args...)
Looks fine to me.
Siddhesh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20150604/68d240e4/attachment.sig>
More information about the Libc-alpha
mailing list