Commit Graph

30 Commits

Author SHA1 Message Date
andri lim
d0365dcadf fixes #6196 2017-08-08 09:04:39 +07:00
Ruslan Mustakov
77cadd07f9 Fix atomicInc under vcc, C++, amd64 (#5809)
Also, fixed inconsistent behaviour of atomicInc on vcc. Previously
it would return the old value, while it must return the new value.

Fixes: #5808
2017-05-12 11:24:45 +02:00
Araq
646a569421 fixes #3279 2016-09-12 22:57:12 +02:00
Anatoly Galiulin
0968771785 Fixed threading issues for tcc backend 2016-03-10 17:45:11 +06:00
Spencer Stirling
d152ccc1e2 fixed threadpool and atomics to work with Visual Studio 32 and 64 bit 2015-06-09 11:59:26 -06:00
pdw
ff5b446dfc lib/system/a-e - Dropped 'T' from types 2015-06-04 13:18:37 +02:00
Wink Saville
b0b3a2500a The importc for atomicCompareExchange is incorrectly defined.
The .importc: was referring to __atomic_compare_exchange_n this corrects
it to be __atomic_compare_exchange.
2015-04-13 20:39:01 -07:00
def
ddeefe85d2 Add cpuRelax assembler for other platforms 2015-03-21 21:02:09 +01:00
Guillaume Gelin
3119fe087d Happy new year! 2015-01-06 15:26:33 +01:00
Araq
511111defa TAtomType includes 'bool' 2014-11-08 11:19:15 +01:00
Araq
adad2d5f4a Merge branch 'devel' into bigbreak
Conflicts:
	lib/impure/db_postgres.nim
	lib/pure/json.nim
	lib/pure/math.nim
	lib/system/atomics.nim
2014-11-03 11:42:36 +01:00
Reimer Behrends
6e3720155a Various atomics fixes for gcc/clang.
Make atomicInc/atomicDec work with clang, too; also, actually import
the memory model constants from C rather than relying on the enum
matching the C constants by happenstance.
2014-10-30 03:42:50 +01:00
Araq
30823c1ce3 make tests green 2014-08-31 15:15:26 +02:00
Araq
dbf9117c56 the big renamefest: first steps 2014-08-22 23:54:26 +02:00
Araq
dd806cafa0 distinguish between 'defined' and 'declared' 2014-08-11 20:38:28 +02:00
Grzegorz Adam Hankiewicz
1daa54e5a2 Downgrades public module comments to private level.
This avoids the weird concatenation in the final system.html file which
doesn't make any sense.
2014-08-05 17:07:43 +02:00
Araq
b7cbb08f99 added 'fence' instructions to the barrier 2014-06-06 02:05:17 +02:00
Araq
2de99653d0 Promises are now refs 2014-06-05 08:46:29 +02:00
Araq
417b9f5a1d 'parallel' statement almost working 2014-05-22 08:41:50 +02:00
Araq
6195dbe491 initial non-compiling version of 'parallel' 2014-05-12 11:12:37 +02:00
Araq
346443d1b5 case consistency improvements 2014-01-11 21:56:05 +01:00
Araq
2df9b442c6 case consistency part 1 2013-12-27 15:48:53 +01:00
Mark Flamer
6fbc96fec4 LockFree Hash Table 0.1 2013-10-22 14:24:38 -07:00
Grzegorz Adam Hankiewicz
72a3e21f28 Removes executable bit for text files. 2013-03-16 23:53:07 +01:00
Yury Benesh
bfd3ac4ee7 Added CAS to system/atomics.nim 2012-10-13 00:04:09 +03:00
Araq
3c98518487 docgen2 improvements 2012-06-23 16:32:14 +02:00
Araq
4f1b89c30c year 2012 for most copyright headers 2012-01-02 23:07:35 +01:00
Araq
5b96eaa953 preparations for 0.8.12 2011-07-10 15:48:13 +02:00
Araq
99bcc233cd bugfix: 'set' overloadable; further steps for multi threading support 2011-07-08 01:29:15 +02:00
Araq
3260702a60 first steps to thread local heaps 2011-06-02 13:02:40 +02:00