About the memory barrier in BSD libc

John Baldwin jhb at freebsd.org
Tue Apr 24 17:34:57 UTC 2012

On Tuesday, April 24, 2012 12:58:42 pm Konstantin Belousov wrote:
> On Tue, Apr 24, 2012 at 11:10:13AM -0400, John Baldwin wrote:
> > Could you move the extern and THREAD_LOCK/UNLOCK macros into the stdio
> > private header file?
> This requires more glue because spinlock.h is separate from libc_private.h.
> I also added a comment trying to explain why assignment is braced with lock.

This looks great, thanks!

John Baldwin

More information about the freebsd-threads mailing list