Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Dec 2009 14:59:21 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        src-committers@freebsd.org
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org
Subject:   Re: svn commit: r200797 - head/lib/libc/stdtime
Message-ID:  <200912211459.21766.jhb@freebsd.org>
In-Reply-To: <200912211943.nBLJhNUU038425@svn.freebsd.org>
References:  <200912211943.nBLJhNUU038425@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 21 December 2009 2:43:23 pm John Baldwin wrote:
> Author: jhb
> Date: Mon Dec 21 19:43:23 2009
> New Revision: 200797
> URL: http://svn.freebsd.org/changeset/base/200797
> 
> Log:
>   Use _once() to initialize the pthread key for thread-local storage to hold
>   the results of localtime() instead of using a pthread mutex directly.

It would probably be simpler to use TLS for this instead, but I'm not sure if
we have working TLS on all supported platforms.

-- 
John Baldwin



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