Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Nov 2009 15:32:57 +0000
From:      Tom Evans <tevans.uk@googlemail.com>
To:        Mikolaj Golub <to.my.trociny@gmail.com>
Cc:        FreeBSD Stable <freebsd-stable@freebsd.org>
Subject:   Re: pthread.h: typo in #define pthread_cleanup_push/pthread_cleanup_pop
Message-ID:  <2e027be00911240732u1ac60d31ucbbb65545636e6b@mail.gmail.com>
In-Reply-To: <8663907xyy.fsf@zhuzha.ua1>
References:  <86aayc7z4g.fsf@zhuzha.ua1> <8663907xyy.fsf@zhuzha.ua1>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Nov 24, 2009 at 3:18 PM, Mikolaj Golub <to.my.trociny@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2e027be00911240732u1ac60d31ucbbb65545636e6b>