Subj : Re: double-checked locking in C To : comp.programming.threads From : Marcin 'Qrczak' Kowalczyk Date : Thu Jul 07 2005 01:46 pm Laurent Deniau writes: > So it seems that there is no way to make it efficient. An intermediate > solution would be to use pthread_once. It is faster than lock (at > least on my OS) but much slower than DCL. If it could be made faster, a good implementation of pthread_once would have done that, modulo only function call overhead. -- __("< Marcin Kowalczyk \__/ qrczak@knm.org.pl ^^ http://qrnik.knm.org.pl/~qrczak/ .