Re: How to reach owner SWITCHING but no waiters in 10.5.8 pthread_mutex_lock?
Re: How to reach owner SWITCHING but no waiters in 10.5.8 pthread_mutex_lock?
- Subject: Re: How to reach owner SWITCHING but no waiters in 10.5.8 pthread_mutex_lock?
- From: Chris Suter <email@hidden>
- Date: Fri, 22 Oct 2010 15:43:36 +1100
On Fri, Oct 22, 2010 at 3:17 PM, Jeremy W. Sherman
<email@hidden> 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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden