Subj : Re: Lock-free buffer To : comp.programming.threads From : SenderX Date : Sat Mar 05 2005 01:44 pm > 1) Allocate a new buffer. > > 2) Write the data into the buffer. > > 3) Save the pointer to the buffer that the readers use. > > 4) Atomically replace the pointer with the pointer to the new buffer. > > 5) Set a timer to free the old buffer later. How would the timer know how long to wait? -- http://appcore.home.comcast.net/ (portable lock-free data-structures) .