pthread_mutex_t initializer idiom

Paolo Carlini pcarlini@suse.de
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...

Paolo.



More information about the Libstdc++ mailing list