This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: pthread_mutex_t initializer idiom


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]