Subj : Re: double-checked locking in C To : comp.programming.threads From : Joe Seigh Date : Thu Jul 07 2005 02:33 pm Alexander Terekhov wrote: > Joe Seigh wrote: > [...] > >>>"The behavior of pthread_once() is undefined if once_control has >>> automatic storage duration or is not initialized by >>> PTHREAD_ONCE_INIT." >>> >> >>So what kind of value could PTHREAD_ONCE_INIT have that couldn't be >>memcpy'd from an initialized pthread_once_t object never otherwise >>used? > > > Same magic stuff as PTHREAD_MUTEX_INIT. Magic, huh? :) -- Joe Seigh When you get lemons, you make lemonade. When you get hardware, you make software. .