diff options
author | Ryan Newton <rrnewton@gmail.com> | 2013-08-04 19:18:26 -0400 |
---|---|---|
committer | Ryan Newton <rrnewton@gmail.com> | 2013-08-21 00:02:30 -0400 |
commit | 25ad01533aaaf1ccf69e1b7216e66de025b8131b (patch) | |
tree | 351e95dc5a87cee41f7a994bcc02f876977419f3 /rts/Timer.c | |
parent | 8750d549d4d7aca3e397de3e217b7cca9e1c1d43 (diff) | |
download | haskell-25ad01533aaaf1ccf69e1b7216e66de025b8131b.tar.gz |
Eliminate atomic_inc_by and instead medofiy atomic_inc.
Diffstat (limited to 'rts/Timer.c')
-rw-r--r-- | rts/Timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/Timer.c b/rts/Timer.c index aa4b8d8fd7..b7762f985c 100644 --- a/rts/Timer.c +++ b/rts/Timer.c @@ -119,7 +119,7 @@ startTimer(void) void stopTimer(void) { - if (atomic_inc(&timer_disabled) == 1) { + if (atomic_inc(&timer_disabled, 1) == 1) { if (RtsFlags.MiscFlags.tickInterval != 0) { stopTicker(); } |