summaryrefslogtreecommitdiff
path: root/src/sortedcache.h
Commit message (Collapse)AuthorAgeFilesLines
* Add stddef include for sortedcacheRussell Belfer2013-08-281-0/+2
| | | | | All use of sortedcache will need this header, so put it in the definition of the sortedcache API.
* Fix sortedcache docs and other feedbackRussell Belfer2013-08-221-7/+28
| | | | | | | This converts an internal lock from a write lock to a read lock where write isn't needed, and also clarifies some doc things about where various locks are acquired and how various APIs are intended to be used.
* Convert sortedcache to use rwlockRussell Belfer2013-08-221-35/+71
| | | | | This is the first use we have of pthread_rwlock_t in libgit2. Hopefully it won't cause any serious portability problems.
* Improve comments on locking for sortedcache APIsRussell Belfer2013-08-211-10/+21
|
* Add sortedcache APIs to lookup index and removeRussell Belfer2013-08-211-0/+7
| | | | This adds two other APIs that I need to the sortedcache type.
* Add sorted cache data typeRussell Belfer2013-08-201-0/+101
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.