Subj : Re: recursive mutexes To : comp.programming.threads From : Marcin 'Qrczak' Kowalczyk Date : Thu May 19 2005 12:54 pm "Chris Thomasson" <_no_damn_spam_cristom@_no_damn_comcast.net_spam> writes: > As for portability, I still don't trust C compilers. They can > reorder instructions under your nose. This is why I try to keep all > of my lock-free code in externally assembled functions. This can > limit the number of chances a C compiler has to screw you over: I don't know about others, but gcc should not reorder things around "volatile asm" with correct inputs/outputs/clobbers in a way which breaks multithreaded code. And if it does, it's a bug and an external function will break this as well. -- __("< Marcin Kowalczyk \__/ qrczak@knm.org.pl ^^ http://qrnik.knm.org.pl/~qrczak/ .