Chris Robinson
07d0bddb4f
Avoid a potential race condition with NewThunkEntry
...
It's possible for another invocation to increase the array size in between the
ReadUnlock and WriteLock calls, causing the 'i' index to refer to a taken
entry.
2015-09-21 13:51:56 -07:00
Chris Robinson
7f5497b863
Use proper atomics for the thunk array
2014-09-03 15:49:31 -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
8c2cd057b2
Fix a minor typo
2012-04-25 19:37:12 -07:00
Chris Robinson
dd74757319
Add a function to initialize a RWLock
2011-08-31 01:00:19 -07:00
Chris Robinson
c4866afbe0
Use a RWLock and atomic exchanges for thunk handling
2011-08-30 17:24:58 -07:00
Chris Robinson
6992a67dd9
Remove some g_ prefixes
2011-08-22 07:50:08 -07:00
Chris Robinson
922f5fa081
Rename a couple variables
2011-08-22 07:44:22 -07:00
Chris Robinson
199df253ca
Always use the thunk functions to get object IDs
2011-08-22 07:40:14 -07:00
Chris Robinson
c1f435cc18
Don't use the thunk array for object lookups
2011-08-22 07:22:02 -07:00
Chris Robinson
17773c5644
Rename the ERROR macro to ERR
2011-07-13 01:43:00 -07:00
Chris Robinson
2cd3e9bcdb
Use the logging macro for thunk errors
2011-07-10 21:49:01 -07:00
Chris Robinson
0d39ac6528
Allow alThunkAddEntry to return a proper error
2011-06-17 23:59:25 -07:00
Chris Robinson
2033f60d24
Print an error when realloc fails
2010-03-15 14:28:38 -07:00
Chris Robinson
6735fc7911
Add missing config.h includes
2008-01-16 14:09:04 -08:00
Chris Robinson
ae5f4e9a74
Initial import
2007-11-13 18:02:18 -08:00