strongswan/src/libstrongswan/threading
Tobias Brunner 960632ffb0 thread: Don't hold mutex when calling cleanup handlers while terminating
This could interfere with cleanup handlers that try to acquire
mutexes while other threads holding these try to e.g. cancel the threads.

As cleanup handlers are only queued by the threads themselves we don't need
any synchronization to access the list.

Fixes #1401.
2016-04-13 13:55:20 +02:00
..
windows thread: Allow thread ID to be value returned by gettid() 2016-03-04 09:12:11 +01:00
condvar.h Separated the public interfaces of the threading primitives. 2009-12-23 17:01:53 +01:00
lock_profiler.h Option to skip slow addr2line resolution in leak-detective 2010-05-20 17:37:18 +02:00
mutex.c mutex: Use atomics to set current thread in recursive mutex 2014-09-09 10:56:15 +02:00
mutex.h Using the thread wrapper in charon, libstrongswan and their plugins. 2009-12-23 17:03:41 +01:00
rwlock.c Fixed some typos 2013-10-29 11:44:23 +01:00
rwlock.h Separated the public interfaces of the threading primitives. 2009-12-23 17:01:53 +01:00
rwlock_condvar.h Added a condvar implementation that works with rwlock_t 2012-09-21 18:16:27 +02:00
semaphore.c semaphore: Support cancellation in wait functions of semaphore fallback 2013-10-23 16:08:40 +02:00
semaphore.h apple: Introduce a central compatibility header with all __APPLE__ quirks 2014-11-21 12:02:08 +01:00
spinlock.c Use a ./configure check to detect pthread spinlock availability 2012-12-18 09:51:33 +01:00
spinlock.h Added wrapper for POSIX spin locks 2012-07-04 10:13:49 +02:00
thread.c thread: Don't hold mutex when calling cleanup handlers while terminating 2016-04-13 13:55:20 +02:00
thread.h thread: Allow thread ID to be value returned by gettid() 2016-03-04 09:12:11 +01:00
thread_value.c Properly cleanup thread-local values for the threads destroying thread_value_t objects 2012-07-12 09:43:27 +02:00
thread_value.h Adding an object-oriented wrapper for thread-specific values. 2009-12-23 17:02:26 +01:00