Subj : Re: double-checked locking in C To : comp.programming.threads From : Marcin 'Qrczak' Kowalczyk Date : Thu Jul 07 2005 09:30 pm Joe Seigh writes: > 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? Platform-specific magic which causes this memory location to be registered with the OS on program initialization as a synchronization object, thus saving a conditional registration on each pthread_once call. I don't think that any platform does this in practice, but it's probably possible in theory and not necessarily useless. -- __("< Marcin Kowalczyk \__/ qrczak@knm.org.pl ^^ http://qrnik.knm.org.pl/~qrczak/ .