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] |
There is a rather old and funny comment at line 586 of rope:I'm still trying to unify some of the atomics and concurrency code, and remove duplicates.
I see this idiom a lot:
__gthread_mutex_t temp = __GTHREAD_MUTEX_INIT; _M_mutex = temp;
Can somebody explain to me why we are doing this instead of:
_M_mutex = __GTHREAD_MUTEX_INIT;
?
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |