This is the mail archive of the
glibc-cvs@sourceware.cygnus.com
mailing list for the glibc project.
libc/linuxthreads mutex.c
- To: glibc-cvs at sourceware dot cygnus dot com
- Subject: libc/linuxthreads mutex.c
- From: drepper at sourceware dot cygnus dot com
- Date: 7 May 2000 23:57:20 -0000
CVSROOT: /cvs/glibc
Module name: libc
Changes by: drepper@sourceware.cygnus.com 00/05/07 16:57:20
Modified files:
linuxthreads : mutex.c
Log message:
(pthread_once): IN_PROGRESS state of pthread_once_t
object state is represented with additional bits which distinguish
whether that state was set up in the current process, or
in an ancestor process. If that state was set in an ancestor,
it means that a fork happened while thread was executing the init
function. In that case, the state is reset to NEVER.
(__pthread_once_fork_prepare): New function.
(__pthread_once_fork_child): Likewise
(__pthread_once_fork_parent): Likewise
(__pthread_reset_pthread_once): Removed.