]> git.proxmox.com Git - libgit2.git/commit - src/cache.h
Refactor git_cache to use an rwlock
authorJustin Spahr-Summers <Justin.SpahrSummers@gmail.com>
Tue, 26 Aug 2014 22:12:43 +0000 (15:12 -0700)
committerJustin Spahr-Summers <Justin.SpahrSummers@gmail.com>
Tue, 26 Aug 2014 22:12:43 +0000 (15:12 -0700)
commit6a211d7c9abbddee342c353092b681b21913b2dd
tree3bd1d416afe185a593651e867f514306f3252301
parent00e9ae5ab4787601a9f3e6ce1ef50ca9c8e60dc9
Refactor git_cache to use an rwlock

This significantly reduces contention when many threads are trying to
read from the cache simultaneously.
src/cache.c
src/cache.h