pthread.h: typo in #define pthread_cleanup_push/pthread_cleanup_pop

Tom Evans tevans.uk at googlemail.com
Tue Nov 24 15:32:59 UTC 2009


On Tue, Nov 24, 2009 at 3:18 PM, Mikolaj Golub <to.my.trociny at gmail.com>wrote:

> <snip>
> So, I don't know what these macros actually were supposed to be. They were
> introduced in r179662:
>
> Revision 1.43: download - view: text, markup, annotated - select for diffs
> Mon Jun 9 01:14:10 2008 UTC (17 months, 2 weeks ago) by davidxu
> Branches: MAIN
> Diff to: previous 1.42: preferred, colored
> Changes since revision 1.42: +21 -2 lines
>
> SVN rev 179662 on 2008-06-09 01:14:10Z by davidxu
>
> Make pthread_cleanup_push() and pthread_cleanup_pop() as a pair of macros,
> use stack space to keep cleanup information, this eliminates overhead of
> calling malloc() and free() in thread library.
>
> Discussed on: thread@
>

http://lists.freebsd.org/pipermail/freebsd-threads/2008-May/004299.html

Cheers

Tom


More information about the freebsd-stable mailing list