Searched hist:199606 (Results 1 - 2 of 2) sorted by relevance

/freebsd-11-stable/lib/libc/gen/
H A D_pthread_stubs.cdiff 199606 Fri Nov 20 17:31:32 MST 2009 jhb 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
/freebsd-11-stable/lib/libc/include/
H A Dlibc_private.hdiff 199606 Fri Nov 20 17:31:32 MST 2009 jhb 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

Completed in 191 milliseconds