bugfix: fixed memory leaks in osproc module
This commit is contained in:
parent
c9b67f724d
commit
a497b4d1cf
7 changed files with 185 additions and 127 deletions
|
|
@ -1774,10 +1774,10 @@ when not defined(EcmaScript) and not defined(NimrodVM):
|
|||
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
proc atomicInc*(memLoc: var int, x: int = 1): int {.inline.}
|
||||
proc atomicInc*(memLoc: var int, x: int = 1): int {.inline, discardable.}
|
||||
## atomic increment of `memLoc`. Returns the value after the operation.
|
||||
|
||||
proc atomicDec*(memLoc: var int, x: int = 1): int {.inline.}
|
||||
proc atomicDec*(memLoc: var int, x: int = 1): int {.inline, discardable.}
|
||||
## atomic decrement of `memLoc`. Returns the value after the operation.
|
||||
|
||||
include "system/atomics"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue