diff options
| author | Edward Thomson <ethomson@github.com> | 2016-02-07 13:16:30 -0800 |
|---|---|---|
| committer | Edward Thomson <ethomson@github.com> | 2016-02-08 16:31:42 -0800 |
| commit | 2ed855a9e8f9af211e7274021c2264e600c0f86b (patch) | |
| tree | fa4d9201dedf36bfd782310bc50c2e70be1c0071 /include/git2/commit.h | |
| parent | 6e0fc1a63138f959cd2aac05e85f70cf9e22a189 (diff) | |
| download | libgit2-2ed855a9e8f9af211e7274021c2264e600c0f86b.tar.gz | |
filter: avoid races during filter registration
Previously we would set the global filter registry structure before
adding filters to the structure, without a lock, which is quite racy.
Now, register default filters during global registration and use an
rwlock to read and write the filter registry (as appopriate).
Diffstat (limited to 'include/git2/commit.h')
0 files changed, 0 insertions, 0 deletions
