summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/man/pthread_mutex_init.3
diff options
context:
space:
mode:
authoralex <alex@FreeBSD.org>1998-08-02 17:04:25 +0000
committeralex <alex@FreeBSD.org>1998-08-02 17:04:25 +0000
commita9c05a1ce9c647def2fa3209aa8b08d065e9f3c6 (patch)
tree8699b2e19a6295c89281abd86844b684970908fc /lib/libpthread/man/pthread_mutex_init.3
parent1d56e79a13576df16cca10607ab99daa27920cd2 (diff)
downloadFreeBSD-src-a9c05a1ce9c647def2fa3209aa8b08d065e9f3c6.zip
FreeBSD-src-a9c05a1ce9c647def2fa3209aa8b08d065e9f3c6.tar.gz
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
Diffstat (limited to 'lib/libpthread/man/pthread_mutex_init.3')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud