WithReadLock and WithWriteLock annotations take a parameter name for the lock name. Getter/Setter pairs should lock on the same variable.
Log in to post a comment.