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] |
Hi,Hi
Well, I consider this code as a temporary limited workaround to the contention issue so I made it simple. Ideally a mutex should be associated to each safe sequence. Do you think that this workaround is going to last for a long time ? Otherwise I do not see the point of spending too much time on the best method to associate the mutex to the sequence.
Probably it's a bit overkilling, you are right. Not that it would make the code much more complex, anyway, and estetically I like that it allows to hide the ugly reinterpret cast. As I see it, probably the workaround will last quite a bit of time, in practice until we either break the ABI (definitely not tomorrow) or *you* decide to implement something even better or both.
Paolo
Attachment:
performance.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |