aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/kernel_wfp/kernel_wfp_ipsec.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2014-06-11 14:24:22 +0200
committerMartin Willi <martin@revosec.ch>2014-06-17 15:19:40 +0200
commit23750961d5b9052ddfe6d4746435e84ca0c87a10 (patch)
treeec707ec981b9324072a4532c14dec5ab82a6204c /src/libcharon/plugins/kernel_wfp/kernel_wfp_ipsec.c
parent2d846c2035de26a52d1439b46b0ca7903fa9dca1 (diff)
downloadstrongswan-23750961d5b9052ddfe6d4746435e84ca0c87a10.tar.bz2
strongswan-23750961d5b9052ddfe6d4746435e84ca0c87a10.tar.xz
thread-value: Defer cleanup handling to thread termination on Windows
Instead of cleaning up all thread-values during destruction, cleanup handler is invoked when a thread detaches. Thread detaching is cough using the Windows DllMain() entry point, and allows us to basically revert 204098a7. Using this mechanism, we make sure that the cleanup handler is invoked by the the correct thread. Further, this mechanism works for externally-spawned threads which run outside of our thread_cb() routine, and works more efficiently with short-running threads.
Diffstat (limited to 'src/libcharon/plugins/kernel_wfp/kernel_wfp_ipsec.c')
0 files changed, 0 insertions, 0 deletions