Date: Tue, 27 May 2003 14:48:42 -0700 (PDT) From: Mike Makonnen <mtm@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libthr/thread thr_exit.c Message-ID: <200305272148.h4RLmgkl052114@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
mtm 2003/05/27 14:48:42 PDT
FreeBSD src repository
Modified files:
lib/libthr/thread thr_exit.c
Log:
Minimize the potential for deadlocks between an exiting thread and it's
joiner by making sure all locks and unlocks occur in the same order. For
the record the lock order is: DEAD_LIST, THREAD_LIST, exiting thread, joiner
thread.
Approved by: re/rwatson
Revision Changes Path
1.7 +18 -2 src/lib/libthr/thread/thr_exit.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305272148.h4RLmgkl052114>
