]> git.proxmox.com Git - libgit2.git/commit - tests/core/sortedcache.c
Add sorted cache data type
authorRussell Belfer <rb@github.com>
Tue, 20 Aug 2013 22:18:48 +0000 (15:18 -0700)
committerRussell Belfer <rb@github.com>
Tue, 20 Aug 2013 23:14:24 +0000 (16:14 -0700)
commit0b7cdc02637bcc8491153a476460c9feab33f8ee
treef04954a8421e2f30c72ae2354267490ba1a2666c
parent0f0f565507565520759bffc22976c583497ec01f
Add sorted cache data type

This adds a convenient new data type for caching the contents of
file in memory when each item in that file corresponds to a name
and you need to both be able to lookup items by name and iterate
over them in some sorted order.  The new data type has locks in
place to manage usage in a threaded environment.
src/sortedcache.c [new file with mode: 0644]
src/sortedcache.h [new file with mode: 0644]
src/vector.h
tests-clar/core/sortedcache.c [new file with mode: 0644]