aboutsummaryrefslogtreecommitdiffstats
path: root/common/threads.c
Commit message (Collapse)AuthorAgeFilesLines
* Convert threads.c to C++Chris Robinson2018-11-171-448/+0
| | | | Also vastly simplify and remove related code.
* Remove some more unused stuffChris Robinson2018-11-171-15/+3
|
* Remove unneeded declarations and definitionsChris Robinson2018-11-171-5/+0
|
* Remove unused altss types and methodsChris Robinson2018-11-161-62/+0
|
* Remove the unused condition variable APIsChris Robinson2018-11-101-152/+0
|
* Move altimespec_get and al_nssleep to examples' common codeChris Robinson2018-11-101-72/+0
|
* Use GCD semaphore on macOSalexey.lysiuk2018-10-151-0/+35
| | | Unnamed POSIX semaphore doesn't work on macOS
* Clear the TLS pointer after running its destructor callbackChris Robinson2018-06-061-1/+5
|
* Add methods to clean up althrd and altss dataChris Robinson2018-03-101-58/+39
|
* Clear stale 'post's on the event semphaphoreChris Robinson2018-02-111-0/+16
|
* Remove unused _timed methodsChris Robinson2018-02-011-119/+0
| | | | | They're not reliably implemented anyway, as some systems will just flat out fail when trying to use them.
* Avoid an unnecessary temp variableChris Robinson2018-02-011-8/+6
|
* Add semaphore functions to the thread API wrapperChris Robinson2018-02-011-0/+87
|
* Add a check for pthread_setname_np with three parametersChris Robinson2017-09-151-0/+2
| | | | As found in NetBSD.
* Add casts to silence MSVCChris Robinson2017-06-291-2/+2
|
* Try increasing the stack size if thread creation failsChris Robinson2016-09-081-7/+25
| | | | Also increase the default stack size to 2MB.
* Fix a direct access to a UIntMapChris Robinson2016-07-091-2/+2
|
* Don't try to emulate almtx_timedlockChris Robinson2016-05-301-43/+12
|
* Avoid underflow in alcnd_timedwait if the time point is already passedChris Robinson2016-02-071-6/+22
|
* Replace some CreateEvent calls with CreateEventWChris Robinson2016-02-071-2/+2
|
* Explicit check if pthread_setname_np accepts only one parameterChris Robinson2016-01-211-2/+2
|
* Add missing closing parenthesisChris Robinson2015-12-111-1/+1
|
* Use Apple's pthread_setname_np before GNU'sChris Robinson2015-12-111-3/+3
|
* Only pass nano seconds to al_nssleepChris Robinson2014-09-081-3/+3
|
* Update COPYING to the latest ↵François Cami2014-08-181-2/+2
| | | | https://www.gnu.org/licenses/old-licenses/lgpl-2.0.txt to fix the FSF' address Fix the FSF' address in the source
* Avoid unnecessary local variablesChris Robinson2014-05-271-6/+6
|
* Implement condition variables for WindowsChris Robinson2014-05-271-0/+158
|
* Implement condition variables (POSIX only!)Chris Robinson2014-05-261-4/+44
| | | | | Windows requires Vista or newer to get the CONDITION_VARIABNLE API, but we currently only require XP.
* Make sure FILETIME and ULARGE_INTEGER sizes matchChris Robinson2014-05-071-0/+2
|
* Move threads.c to a separate source dirChris Robinson2014-05-061-0/+544
This will eventually serve to build a static lib of common wrapper methods, such as threads, mutexes, atomics, etc.