About the memory barrier in BSD libc

Fengwei yin yfw.bsd at gmail.com
Mon Apr 23 06:56:03 UTC 2012

Hi list,
If this is not correct question on the list, please let me know and
sorry for noise.

I have a question regarding the BSD libc for SMP arch. I didn't see
memory barrier used in libc.
How can we make sure it's safe on SMP arch?

BTW, there are memory barrier used in kernel instead. So I suppose the
memory barrier is needed.

Yin, Fengwei

More information about the freebsd-threads mailing list