diff options
author | Michael Cahill <michael.cahill@mongodb.com> | 2015-08-19 12:04:55 +1000 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2015-08-19 11:45:31 -0400 |
commit | ba32b71f75c85dd6ff3558346d19154d037888ec (patch) | |
tree | 3c3b90617c0a337f65d026bd13bc66ced3d0492d /bench | |
parent | 1c2542ff9337af935ce95a63c91cd2024694634e (diff) | |
download | mongo-ba32b71f75c85dd6ff3558346d19154d037888ec.tar.gz |
Merge pull request #2112 from wiredtiger/wt-2025-inline-atomic-functions
WT-2025: inline atomic functions.
(cherry picked from commit ada57c1ed44ab0dd4f904f60a63bbc77333b2baa)
Diffstat (limited to 'bench')
-rw-r--r-- | bench/wtperf/wtperf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bench/wtperf/wtperf.c b/bench/wtperf/wtperf.c index a4f679ae736..9ee7865aa0b 100644 --- a/bench/wtperf/wtperf.c +++ b/bench/wtperf/wtperf.c @@ -94,7 +94,7 @@ static uint64_t wtperf_value_range(CONFIG *); static inline uint64_t get_next_incr(CONFIG *cfg) { - return (WT_ATOMIC_ADD8(cfg->insert_key, 1)); + return (__wt_atomic_add64(&cfg->insert_key, 1)); } static inline void @@ -154,7 +154,7 @@ cb_asyncop(WT_ASYNC_CALLBACK *cb, WT_ASYNC_OP *op, int ret, uint32_t flags) switch (type) { case WT_AOP_COMPACT: tables = (uint32_t *)op->app_private; - WT_ATOMIC_ADD4(*tables, (uint32_t)-1); + (void)__wt_atomic_add32(tables, (uint32_t)-1); break; case WT_AOP_INSERT: trk = &thread->insert; @@ -189,7 +189,7 @@ cb_asyncop(WT_ASYNC_CALLBACK *cb, WT_ASYNC_OP *op, int ret, uint32_t flags) return (0); if (ret == 0 || (ret == WT_NOTFOUND && type != WT_AOP_INSERT)) { if (!cfg->in_warmup) - (void)WT_ATOMIC_ADD8(trk->ops, 1); + (void)__wt_atomic_add64(&trk->ops, 1); return (0); } err: |