]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use _once() to initialize the pthread key for thread-local storage to hold
authorjhb <jhb@FreeBSD.org>
Mon, 21 Dec 2009 19:43:23 +0000 (19:43 +0000)
committerjhb <jhb@FreeBSD.org>
Mon, 21 Dec 2009 19:43:23 +0000 (19:43 +0000)
commit257e93c9a0eba2f74e73a06f18fea91d461f6e15
treee6e72d337600509aba60b26e417e79c3ee48a49f
parentf04a989f2dbe7ffdf8dc178715cc5fe4c658f813
Use _once() to initialize the pthread key for thread-local storage to hold
the results of localtime() instead of using a pthread mutex directly.

MFC after: 1 week
lib/libc/stdtime/localtime.c