News for hackers. Stuff that matters.
Re:Why Hashbrown Does a Double Lookup by shittyadmin on Thursday March 21, 2019 @12:18PM (#19454071)
But you don't need to write every time, only on occasion, so you can actually use a read write lock and in the nominal case many threads can read just fine.

That said, it's probably still better to avoid this unless it's absolutely necessary to modify the underlying structure sometimes, I recently had to do this for an LRU cache.

There are no comments on this comment yet.