* question on powerpc pthread mutexes and memory barriers
@ 2009-07-09 21:19 Chris Friesen
2009-07-09 22:42 ` Chris Friesen
0 siblings, 1 reply; 2+ messages in thread
From: Chris Friesen @ 2009-07-09 21:19 UTC (permalink / raw)
To: linuxppc-dev
Hi all,
This probably isn't the right place to ask about this, but does anyone
know where the implied memory barrier happens for pthread mutexes in the
uncontended case? I'm looking at the glibc code and I don't see any
barrier instructions for mutexes, only semaphores and spinlocks.
Thanks,
Chris
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: question on powerpc pthread mutexes and memory barriers
2009-07-09 21:19 question on powerpc pthread mutexes and memory barriers Chris Friesen
@ 2009-07-09 22:42 ` Chris Friesen
0 siblings, 0 replies; 2+ messages in thread
From: Chris Friesen @ 2009-07-09 22:42 UTC (permalink / raw)
To: linuxppc-dev
Chris Friesen wrote:
> Hi all,
>
> This probably isn't the right place to ask about this, but does anyone
> know where the implied memory barrier happens for pthread mutexes in the
> uncontended case? I'm looking at the glibc code and I don't see any
> barrier instructions for mutexes, only semaphores and spinlocks.
Bad form to follow up on my own question, but I tracked it down. The
barriers are there hidden in the atomic macros.
Sorry for the noise.
Chris
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-07-09 23:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-09 21:19 question on powerpc pthread mutexes and memory barriers Chris Friesen
2009-07-09 22:42 ` Chris Friesen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.