skarupke / flat_hash_map

A very fast hashtable
1.69k stars 186 forks source link

Concurrent Access #24

Closed victorstewart closed 5 years ago

victorstewart commented 5 years ago

I intend to start using your bytell_hash_map in my project, so my question applies to it specifically, but I assume the answer will apply to all your hash maps...

Are concurrent reads from multiple threads thread-safe? I skimmed the find implementation and see no reason why reads would not be.

I (with 99% certainty) assume writes are not.

skarupke commented 5 years ago

Writes are not thread safe. Concurrent reads are allowed.