attractivechaos / klib

A standalone and lightweight C library
http://attractivechaos.github.io/klib/
MIT License
4.18k stars 556 forks source link

is khash thread-safe when used read-only? #109

Closed kullanici0606 closed 6 years ago

kullanici0606 commented 6 years ago

Hi,

I want to populate a hash set in the beginning of program and want to do lookups from several threads. Hash set will be read-only. Is khash thread-safe for this type of situation (i.e concurrent readers)? I looked documentation but couldn't find anything about it.

attractivechaos commented 6 years ago

Yes, reading is thread safe. Writing is not.

kullanici0606 commented 6 years ago

Thanks a lot for the information