Prevent using commentRepository() without locking
commentRepository() returned a reference to StringRepository, which could be accidentally used directly rather than via the helper function commentRepositoryOp() that locks the mutex. Prevent such usage mistakes by encapsulating the mutex and the repository in class CommentRepository similar to class StaticCacheData in modificationrevision.cpp.
parent
090dbf9f
Please register or sign in to comment