diff options
author | Martin Willi <martin@revosec.ch> | 2014-10-22 11:24:51 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2014-10-30 10:45:24 +0100 |
commit | 61e29aca0dcc3e706a97d3b95d988b65723535a5 (patch) | |
tree | 2e2be902167fcec0f65a523e42c9fc343e6942b0 /src/libhydra/attributes/mem_pool.c | |
parent | 6a3f0467e48dfbced121ac9e1ac818de9b7292e1 (diff) | |
download | strongswan-61e29aca0dcc3e706a97d3b95d988b65723535a5.tar.bz2 strongswan-61e29aca0dcc3e706a97d3b95d988b65723535a5.tar.xz |
threading: Support rwlock try_write_lock() on Windows
We explicitly avoided TryAcquireSRWLockExclusive() because of crashes. This
issue was caused by a MinGW-w64 bug (mingw-w64 fix 46f77afc). Using a newer
toolchain works fine.
While try_write_lock() obviously can fail, not supporting it is not really an
option, as some algorithms depend on occasionally successful calls. Certificate
caching in the certificate manager and the cred_set cache rely on successful
try_write_lock()ing.
Diffstat (limited to 'src/libhydra/attributes/mem_pool.c')
0 files changed, 0 insertions, 0 deletions