
18 Nov
2012
18 Nov
'12
7:56 a.m.
Hello, I'm currently using intrusive:: unordered_set in a single threaded application. But now, I need to switch to a multi threaded application. As such, the unordered_set must be protected. I don't want to block the whole table with a single mutex. Thus, it would be fine to have a lock per bucket. Furthermore, intrusive:: unordered_set provides a bucket_traits mechanism to enable some customization. So, my question: is it possible to use bucket_traits to have a lock per bucket? Thank you! -- Alexandre Hamez