so you don't need to lock it to avoid a corrupted value.
It's possible that the ops return junk if all the lock does is avoid corruption. I'm not sure this answers anything.
For starters, does a hash have one iterator per thread or just one iterator? each and possibly keys aren't safe if it's the latter.
In reply to Re^3: threads::shared - when to lock a hash ?
by ikegami
in thread threads::shared - when to lock a hash ?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |