pthread_mutex_t initializer idiom

Paolo Carlini
Fri Sep 8 11:20:00 GMT 2006

Peter Dimov wrote:

> It is presumably to cover the case where __GTHREAD_MUTEX_INIT expands 
> to something like { 0, 0 }.

Ah, yes, now I remember when we hacked a bit shared_ptr, in some cases 
_M_mutex = __GTHREAD_MUTEX_INIT; doesn't even compile...


More information about the Libstdc++ mailing list