I need to solve a locking problem for this scenario:
If the work you do while holding the lock is small you can try a normal mutex, non reader-writer. It's more efficient.