Date: Thu, 17 Dec 2009 20:41:40 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/lib/libc/gen Makefile.inc _once_stub.c src/lib/libc/include libc_private.h Message-ID: <200912172042.nBHKg6UY041088@repoman.freebsd.org>
index | next in thread | raw e-mail
jhb 2009-12-17 20:41:40 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_7)
lib/libc/gen Makefile.inc
lib/libc/include libc_private.h
Added files: (Branch: RELENG_7)
lib/libc/gen _once_stub.c
Log:
SVN rev 200649 on 2009-12-17 20:41:40Z by jhb
MFC 199606, 199614:
Add an internal _once() method. This works identical to pthread_once(3)
with the additional property that it is safe for routines in libc to use
in both single-threaded and multi-threaded processes. Multi-threaded
processes use the pthread_once() implementation from the threading library
while single-threaded processes use a simplified "stub" version internal
to libc.
Revision Changes Path
1.128.2.4 +2 -1 src/lib/libc/gen/Makefile.inc
1.2.4.2 +64 -0 src/lib/libc/gen/_once_stub.c (new)
1.17.2.3 +7 -0 src/lib/libc/include/libc_private.h
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912172042.nBHKg6UY041088>
