linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sebastian Huber <sebastian.huber-L1vi/lXTdtsBbLBgBO8hYIQuADTiUCJX@public.gmane.org>
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: PTHREAD_CLEANUP_PUSH_DEFER_NP(3)
Date: Thu, 04 Jul 2013 16:38:52 +0200	[thread overview]
Message-ID: <51D588FC.6070701@embedded-brains.de> (raw)

Hello,

I think there is an error in the description

        is equivalent to (but shorter and more efficient than):

            int oldtype;

            pthread_cleanup_push(routine, arg);
            pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, &oldtype);
            ...
            pthread_setcanceltype(oldtype, NULL);
            pthread_cleanup_pop(execute);

this should be instead

        is equivalent to (but shorter and more efficient than):

            int oldtype;

            pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, &oldtype);
            pthread_cleanup_push(routine, arg);
            ...
            pthread_cleanup_pop(execute);
            pthread_setcanceltype(oldtype, NULL);

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber-L1vi/lXTdtsBbLBgBO8hYIQuADTiUCJX@public.gmane.org
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

             reply	other threads:[~2013-07-04 14:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-04 14:38 Sebastian Huber [this message]
     [not found] ` <51D588FC.6070701-L1vi/lXTdtsBbLBgBO8hYIQuADTiUCJX@public.gmane.org>
2013-07-09  2:34   ` PTHREAD_CLEANUP_PUSH_DEFER_NP(3) Michael Kerrisk (man-pages)
     [not found]     ` <CAKgNAkimJbCdJ6W_+1qaM1KpCxFAN5EfzbMF_PDBC7vcXcb6dA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-07-09  8:07       ` PTHREAD_CLEANUP_PUSH_DEFER_NP(3) Sebastian Huber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51D588FC.6070701@embedded-brains.de \
    --to=sebastian.huber-l1vi/lxtdtsbblbgbo8hyiquadtiucjx@public.gmane.org \
    --cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).