diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-01-03 15:34:35 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-01-03 16:11:38 +0100 |
commit | 9fa528c5fceefd53303a604625d13cf0cdbb109e (patch) | |
tree | 8f5d6c64300f54af1c6d3afcf5ba8b0cd82a4492 /examples/imapresource/imapserverproxy.cpp | |
parent | 46bf82eaec0a30281d0b8deaf1ffbd06030eb997 (diff) | |
download | sink-9fa528c5fceefd53303a604625d13cf0cdbb109e.tar.gz sink-9fa528c5fceefd53303a604625d13cf0cdbb109e.zip |
Use read-write locks for finer grained control to sDbi and sEnvironments
There are only a few cases where have to access the list of dbis or
environments, so we can normally get away with just read-locking.
This seems to fix a segfault that was possibly caused be an environment
being reused that has already been freed in another thread. The
read-only lock when initially retrieving the environment seems to fix
that.
Diffstat (limited to 'examples/imapresource/imapserverproxy.cpp')
0 files changed, 0 insertions, 0 deletions