site_archiver@lists.apple.com Delivered-To: Darwin-kernel@lists.apple.com On Fri, Oct 22, 2010 at 3:17 PM, Jeremy W. Sherman <jeremyw.sherman@gmail.com> wrote:
I was reading through the 10.5.8 pthread mutex implementation (Libc-498.1.7/xnu-1228.15.4). I am stumped by a couple things, and I hope that someone here can shed some light on them.
First: How might a thread enter this else-if clause in pthread_mutex_lock() (Libc/pthreads/pthread_mutex.c:333)?
Possibly because of pthread_cond_wait. It sets the owner to PTHREAD_MUTEX_OWNER_SWITCHING at one point. -- Chris _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com