klib
klib copied to clipboard
Can I use read-write lock to guarantee thread-safe?
Hello, I am not sure that does the get op will modify the inner data. Under such situation, only lock will work, I think.
If not, can I use read-write lock? read lock to guard get op, write lock to guard set op.
Thank you.