Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 May 2008 17:48:29 -0400
From:      John Baldwin <jhb@FreeBSD.org>
To:        freebsd-threads@FreeBSD.org
Cc:        David Xu <davidxu@FreeBSD.org>
Subject:   Re: pthread_cleanup_push as a macro
Message-ID:  <200805301748.29689.jhb@freebsd.org>
In-Reply-To: <483FA1C0.2010506@freebsd.org>
References:  <483FA1C0.2010506@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 30 May 2008 02:42:08 am David Xu wrote:
> I would like to make pthread_cleanup_push and pthread_cleanup_pop as a
> pair of macros, the current implementation has to malloc() and free() a
> pthread_cleanup memory block everytime, this is slow, the new one
> simply uses stack space, note that other OSes have already done it in 
> this way. The patch keeps old functions and should not have binary
> compatible problem.
> 
> http://people.freebsd.org/~davidxu/patch/pthread_cleanup_push.patch

Please do!

-- 
John Baldwin



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