diff options
| author | Carlos Martín Nieto <cmn@dwim.me> | 2012-12-20 07:55:51 +0100 |
|---|---|---|
| committer | Carlos Martín Nieto <cmn@dwim.me> | 2013-01-11 16:55:37 +0100 |
| commit | 525d961c2442f3947517201113e375375fcf4280 (patch) | |
| tree | baaef7078ca1f7a1650191de3f9e5073f8cbac34 /src/pack.h | |
| parent | c0f4a0118dd3821447512bf3b404be69c773eaf8 (diff) | |
| download | libgit2-525d961c2442f3947517201113e375375fcf4280.tar.gz | |
pack: refcount entries and add a mutex around cache access
Diffstat (limited to 'src/pack.h')
| -rw-r--r-- | src/pack.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pack.h b/src/pack.h index 0f795f6f4..732bfc3ff 100644 --- a/src/pack.h +++ b/src/pack.h @@ -54,7 +54,7 @@ struct git_pack_idx_header { }; typedef struct git_pack_cache_entry { - git_off_t off; + git_atomic refcount; git_rawobj raw; } git_pack_cache_entry; @@ -77,6 +77,7 @@ struct git_pack_file { git_vector cache; git_oid **oids; + git_mutex bases_lock; git_offmap *bases; /* delta base cache */ /* something like ".git/objects/pack/xxxxx.pack" */ |
