Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
atomic.h: add missing returns, fixes #3616
  • Loading branch information
virtualdj authored and perexg committed Mar 9, 2016
1 parent 0e5f44a commit 4d6d55b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/atomic.h
Expand Up @@ -158,6 +158,7 @@ atomic_exchange_u64(volatile uint64_t *ptr, uint64_t val)
ret = *ptr;
*ptr = val;
pthread_mutex_unlock(&atomic_lock);
return ret;
#endif
}

Expand All @@ -172,6 +173,7 @@ atomic_exchange_s64(volatile int64_t *ptr, int64_t val)
ret = *ptr;
*ptr = val;
pthread_mutex_unlock(&atomic_lock);
return ret;
#endif
}

Expand All @@ -186,6 +188,7 @@ atomic_exchange_time_t(volatile time_t *ptr, time_t val)
ret = *ptr;
*ptr = val;
pthread_mutex_unlock(&atomic_lock);
return ret;
#endif
}

Expand Down

0 comments on commit 4d6d55b

Please sign in to comment.