aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/threading/windows/thread.c
Commit message (Collapse)AuthorAgeFilesLines
* thread: Allow thread ID to be value returned by gettid()Thomas Egerer2016-03-041-0/+4
| | | | Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
* thread: Add a function to pop and call all registered cleanup handlersMartin Willi2015-04-151-0/+20
|
* windows: Remove useless assignment in put_thread()Tobias Brunner2014-07-021-1/+1
|
* thread-value: Defer cleanup handling to thread termination on WindowsMartin Willi2014-06-171-30/+44
| | | | | | | | | | | 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.
* windows: Use WINAPI call convention for Windows API callbacksMartin Willi2014-06-061-2/+4
| | | | | For x86_64 it does not actually matter, but for i686 builds the call convention is different with WINAPI.
* windows: Include for Vista instead of defining CondVar/SRWLock functions ourselfMartin Willi2014-06-041-3/+2
|
* thread-value: Immediately cleanup all Windows TLS values on destroyMartin Willi2014-06-041-1/+35
|
* windows: Prevent queueing of multiple thread cancel APCsMartin Willi2014-06-041-4/+13
| | | | | This avoids any races during cleanup invocation if multiple cancel() requests come in.
* windows: Provide a complete native Windows threading backendMartin Willi2014-06-041-0/+619