Hi Luiz, >> So you need to find an alternate approach. Think through your data >> structures carefully. > > Ive solved a similar problem with queues in BlueZ, it is very similar > to ell queues, the code looks like this now: > > http://fpaste.org/185237/14238402/ We're not going to increase memory consumption by 25% just to support a few corner cases involving re-entrancy. Even STL containers don't support the usage models you guys want to support. So I repeat this again, leave queues and hashmaps alone. Handle re-entrancy separately. Lets move on please ;) Regards, -Denis