Merge pull request #2553 from winksaville/fix-importc-atomic_compare_exchange
The importc for atomicCompareExchange is incorrectly defined.
This commit is contained in:
commit
e281d41370
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ when someGcc and hasThreadSupport:
|
|||
|
||||
proc atomicCompareExchange*[T: TAtomType](p, expected, desired: ptr T,
|
||||
weak: bool, success_memmodel: AtomMemModel, failure_memmodel: AtomMemModel): bool {.
|
||||
importc: "__atomic_compare_exchange_n ", nodecl.}
|
||||
importc: "__atomic_compare_exchange", nodecl.}
|
||||
## This proc implements the generic version of atomic_compare_exchange.
|
||||
## The proc is virtually identical to atomic_compare_exchange_n, except the desired
|
||||
## value is also a pointer.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue