Date: Sun, 2 Aug 1998 10:04:26 -0700 (PDT) From: Alex Nash <alex@FreeBSD.ORG> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/lib/libc_r/uthread uthread_mutex.c Message-ID: <199808021704.KAA02593@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
alex 1998/08/02 10:04:25 PDT
Modified files:
lib/libc_r/uthread uthread_mutex.c
Log:
Fixed a race condition during the first lock/trylock of a statically
initialized mutex. Statically initialized mutexes are actually
initialized at first use (pthread_mutex_lock/pthread_mutex_trylock).
To prevent concurrent initialization by multiple threads, all
static initializations are now serialized by a spinlock.
Reviewed by: jb
Revision Changes Path
1.8 +21 -4 src/lib/libc_r/uthread/uthread_mutex.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199808021704.KAA02593>
