Subj : Re: posix and lock-free algorithms To : comp.programming.threads From : David Hopwood Date : Sat Aug 13 2005 01:39 am David Schwartz wrote: > For example, a common > pattern is to create an object, initialize it, acquire a lock, and add a > pointer to that object so other threads can see it, then release the lock. That's trickier than you might think. In particular, if the other threads can read the location to which the pointer is written without holding the lock, the behaviour is undefined (by POSIX). -- David Hopwood .