From owner-freebsd-stable@FreeBSD.ORG Tue Nov 24 15:32:59 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9B6601065676 for ; Tue, 24 Nov 2009 15:32:59 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from mail-ew0-f221.google.com (mail-ew0-f221.google.com [209.85.219.221]) by mx1.freebsd.org (Postfix) with ESMTP id 2F8898FC08 for ; Tue, 24 Nov 2009 15:32:58 +0000 (UTC) Received: by ewy21 with SMTP id 21so628581ewy.13 for ; Tue, 24 Nov 2009 07:32:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=6DQL5RjitfTuaxBPn2sfTpEj70/eM06sURNyk7kqQqo=; b=wXFv6oYIuWtna6w7IdSdevlNB/6zzlBYK+lAP/VLrAXYkVuh0RAFof/w7HMUNxXrS+ PxvIQm4fRnrOtV40M9k+HrHtb38FCCmRRAdiIKvLwGwKe/QSE+UL3h1BvCHuLJZ6D0Lc 7L1Y1Yr5od6lE0emSwhjHcieUtFDrMtudV7eY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=lW4W5V3PHQUQpVlnE8bbwaUBnOTvKmAfGIgj7Hd3gc/rHrSSuE2rqfOaxBRglgEubk Nquq2Je4yuLZz28EEoIPf1yb6xQrPZF2YOPr5Z+8bPo4Sq1rZ/ah4qRmBvQCtu9kcv4I z+YG63WNkQIy4g4uWeyq0COQMDjGBOvQ3LBH4= MIME-Version: 1.0 Received: by 10.213.0.195 with SMTP id 3mr5275377ebc.87.1259076777232; Tue, 24 Nov 2009 07:32:57 -0800 (PST) In-Reply-To: <8663907xyy.fsf@zhuzha.ua1> References: <86aayc7z4g.fsf@zhuzha.ua1> <8663907xyy.fsf@zhuzha.ua1> Date: Tue, 24 Nov 2009 15:32:57 +0000 Message-ID: <2e027be00911240732u1ac60d31ucbbb65545636e6b@mail.gmail.com> From: Tom Evans To: Mikolaj Golub Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD Stable Subject: Re: pthread.h: typo in #define pthread_cleanup_push/pthread_cleanup_pop X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Nov 2009 15:32:59 -0000 On Tue, Nov 24, 2009 at 3:18 PM, Mikolaj Golub wrote: > > 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