aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/threading/rwlock.c
Commit message (Collapse)AuthorAgeFilesLines
* Fixed some typosTobias Brunner2013-10-291-1/+1
|
* rwlock: Disable thread cancelability while waiting in (fallback) rwlockMartin Willi2013-10-241-0/+7
| | | | | | An rwlock wait is not a thread cancellation point. As a canceled thread would not have released the mutex, the rwlock would have been left in unusable state.
* rwlock: Don't use buggy pthread_rwlock on OS XMartin Willi2013-10-241-0/+7
| | | | Recursive read locks don't seem to work properly, at least on 10.9.
* rwlock: Re-acquire rwlock even if condvar wait times outMartin Willi2013-10-231-1/+1
| | | | | A caller expects that the associated rwlock is held, whether the condvar gets signaled or the wait times out.
* Moved debug.[ch] to utils folderTobias Brunner2012-10-241-1/+1
|
* Use a helper function to add milliseconds to timeval structsTobias Brunner2012-10-181-6/+1
|
* Properly handle thread cancelation in rwlock_condvar_tTobias Brunner2012-09-211-15/+20
|
* Added a condvar implementation that works with rwlock_tTobias Brunner2012-09-211-0/+126
|
* Use a single thread-specific value for our custom rwlock_t implementationTobias Brunner2012-08-031-50/+67
| | | | | | The pthread implementation on Android currently only supports 64 different thread-specific values per process, which we hit easily when every rwlock_t requires one.
* Added recursive read_lock support to our own implementation of rwlock_t.Tobias Brunner2012-05-021-4/+35
|
* Migrated rwlock_t to INIT/METHOD macros.Tobias Brunner2011-10-031-61/+45
|
* Adding DBG_LIB to all calls of libstrongswan's version of DBG*.Tobias Brunner2010-04-061-3/+3
|
* Separated the public interfaces of the threading primitives.Tobias Brunner2009-12-231-1/+62
|
* Implemented a read-write lock using only mutex_t and condvar_t (in case the ↵Tobias Brunner2009-12-231-0/+150
| | | | pthread_rwlock_* group of functions is not available).
* Threading primitives separated.Tobias Brunner2009-12-231-0/+116