Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
atomic.h: fix atomic_set_s64_peak for !ATOMIC64
  • Loading branch information
perexg committed Mar 14, 2016
1 parent 0cf65f2 commit f0472ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/atomic.h
Expand Up @@ -301,7 +301,9 @@ atomic_set_s64_peak(volatile int64_t *ptr, int64_t val, volatile int64_t *peak)
atomic_set_s64(peak, val);
return ret;
#else
int64_t ret;
pthread_mutex_lock(&atomic_lock);
ret = *ptr;
*ptr = val;
if (val > *peak)
*peak = val;
Expand Down

0 comments on commit f0472ee

Please sign in to comment.