klib icon indicating copy to clipboard operation
klib copied to clipboard

Can I use read-write lock to guarantee thread-safe?

Open lxyscls opened this issue 4 years ago • 0 comments

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.

lxyscls avatar Jul 15 '20 06:07 lxyscls