Chris Robinson
|
02a6031d03
|
Use atomic flags for boolean atomic locks
|
2016-11-25 23:25:16 -08:00 |
|
Chris Robinson
|
8492c2845d
|
Avoid some unnecessary seq_cst memory ordering
|
2016-11-22 03:40:15 -08:00 |
|
Chris Robinson
|
958301d880
|
Try increasing the stack size if thread creation fails
Also increase the default stack size to 2MB.
|
2016-09-08 06:30:25 -07:00 |
|
Chris Robinson
|
fe2fb81047
|
Fix a direct access to a UIntMap
|
2016-07-09 16:42:36 -07:00 |
|
Chris Robinson
|
8f4d6c48ce
|
Use separate arrays for UIntMap keys and values
|
2016-07-04 20:35:32 -07:00 |
|
Chris Robinson
|
f0cbcdc928
|
Use al_malloc/al_free for the UIntMap array
|
2016-07-04 10:26:46 -07:00 |
|
Chris Robinson
|
d1c4fb6364
|
Don't try to emulate almtx_timedlock
|
2016-05-30 05:04:49 -07:00 |
|
Chris Robinson
|
01f3e33df9
|
Remove a couple unneeded functions
|
2016-05-25 06:45:56 -07:00 |
|
Chris Robinson
|
906a4bb22d
|
Hold the source map lock while handling it
|
2016-05-10 22:49:24 -07:00 |
|
Chris Robinson
|
2ccc1d1d8a
|
Move the aligned malloc functions to the common lib
|
2016-03-29 00:44:58 -07:00 |
|
Chris Robinson
|
000ced3795
|
Avoid underflow in alcnd_timedwait if the time point is already passed
|
2016-02-07 17:47:52 -08:00 |
|
Chris Robinson
|
f4fa41487c
|
Replace some CreateEvent calls with CreateEventW
|
2016-02-07 16:14:27 -08:00 |
|
Chris Robinson
|
bb0ac26ce1
|
Explicit check if pthread_setname_np accepts only one parameter
|
2016-01-21 02:33:45 -08:00 |
|
Chris Robinson
|
d7b2bba2e6
|
Add missing closing parenthesis
|
2015-12-11 07:35:39 -08:00 |
|
Chris Robinson
|
13bf636a34
|
Use Apple's pthread_setname_np before GNU's
|
2015-12-11 07:26:27 -08:00 |
|
Chris Robinson
|
2be33d8a77
|
Only pass nano seconds to al_nssleep
|
2014-09-08 04:37:52 -07:00 |
|
François Cami
|
3c13e1e333
|
Update COPYING to the latest https://www.gnu.org/licenses/old-licenses/lgpl-2.0.txt to fix the FSF' address Fix the FSF' address in the source
|
2014-08-18 11:34:29 -07:00 |
|
Chris Robinson
|
f5194a9d8e
|
Use an ATOMIC_INIT macro instead of ATOMIC_LOAD_UNSAFE
|
2014-08-03 00:26:21 -07:00 |
|
Chris Robinson
|
87423f046e
|
Use atomics for the device and context list heads
|
2014-08-01 02:04:40 -07:00 |
|
Chris Robinson
|
cdfc5a4d31
|
Remove an unused function
|
2014-07-31 04:44:39 -07:00 |
|
Chris Robinson
|
ce046d2f03
|
Rename ATOMIC_COMPARE_EXCHANGE to ATOMIC_COMPARE_EXCHANGE_STRONG
|
2014-07-31 04:34:46 -07:00 |
|
Chris Robinson
|
531c0d8e6b
|
Explicitly pass the address of atomics and parameters that can be modified
|
2014-07-26 03:00:49 -07:00 |
|
Chris Robinson
|
e4b779c492
|
Use generic atomics in more places
|
2014-07-22 18:57:51 -07:00 |
|
Chris Robinson
|
a3b1d4a5e2
|
Implement RefCount as a generic atomic type
|
2014-07-22 18:18:14 -07:00 |
|
Chris Robinson
|
73614f228e
|
Add methods to exchange and compare-exchange RefCount values
|
2014-05-27 15:48:15 -07:00 |
|
Chris Robinson
|
fd62868c17
|
Avoid unnecessary local variables
|
2014-05-27 15:32:38 -07:00 |
|
Chris Robinson
|
f0b65aa6b7
|
Implement condition variables for Windows
|
2014-05-27 05:22:53 -07:00 |
|
Chris Robinson
|
b6e1042e8c
|
Implement condition variables (POSIX only!)
Windows requires Vista or newer to get the CONDITION_VARIABNLE API, but we
currently only require XP.
|
2014-05-26 03:52:55 -07:00 |
|
Chris Robinson
|
1d2504d12e
|
Make RefCount a non-integer type
It should only be accessed through the appropriate functions to ensure proper
atomicity.
|
2014-05-14 02:47:07 -07:00 |
|
Chris Robinson
|
a2bddb7b40
|
Move RWLock and UIntMap implementations to common
This should make the code in common completely self-reliant.
|
2014-05-07 19:16:49 -07:00 |
|
Chris Robinson
|
3e274c3a57
|
Make sure FILETIME and ULARGE_INTEGER sizes match
|
2014-05-07 16:12:34 -07:00 |
|
Chris Robinson
|
1aff37114a
|
Move atomic method definitions to a separate common source
|
2014-05-06 19:07:40 -07:00 |
|
Chris Robinson
|
fa12855d19
|
Move threads.c to a separate source dir
This will eventually serve to build a static lib of common wrapper methods,
such as threads, mutexes, atomics, etc.
|
2014-05-06 18:57:42 -07:00 |
|