Date: Thu, 17 Dec 2009 20:41:27 +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: <200912172041.nBHKfhW7041025@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2009-12-17 20:41:27 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) lib/libc/gen Makefile.inc lib/libc/include libc_private.h Added files: (Branch: RELENG_8) lib/libc/gen _once_stub.c Log: SVN rev 200648 on 2009-12-17 20:41:27Z 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.144.2.3 +2 -1 src/lib/libc/gen/Makefile.inc 1.2.2.2 +64 -0 src/lib/libc/gen/_once_stub.c (new) 1.20.2.2 +7 -0 src/lib/libc/include/libc_private.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912172041.nBHKfhW7041025>