summaryrefslogtreecommitdiff
path: root/include/git2/commit.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@github.com>2016-02-07 13:16:30 -0800
committerEdward Thomson <ethomson@github.com>2016-02-08 16:31:42 -0800
commit2ed855a9e8f9af211e7274021c2264e600c0f86b (patch)
treefa4d9201dedf36bfd782310bc50c2e70be1c0071 /include/git2/commit.h
parent6e0fc1a63138f959cd2aac05e85f70cf9e22a189 (diff)
downloadlibgit2-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