John Baldwin 5bcfe82e47 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.  The libc stub-version of pthread_once() now also uses the
simplified "stub" version as well instead of being a nop.

Reviewed by:	deischen, Matthew Fleming @ Isilon
Suggested by:	alc
MFC after:	1 week
2009-11-20 19:19:51 +00:00
..
2009-10-26 17:27:30 +00:00
2009-06-23 23:20:09 +00:00
2009-10-21 18:29:26 +00:00
2009-09-21 08:30:52 +00:00
2009-11-02 12:35:38 +00:00
2009-11-20 08:57:25 +00:00