Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2ed855a

Browse files
author
Edward Thomson
committed
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).
1 parent 6e0fc1a commit 2ed855a

File tree

2 files changed

+157
-124
lines changed

2 files changed

+157
-124
lines changed

0 commit comments

Comments
 (0)