diff options
author | Keith Bostic <keith@wiredtiger.com> | 2015-08-06 19:05:53 -0400 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2015-08-06 19:05:53 -0400 |
commit | 524dd078562cc7a7bb9f797fe5d07caf7672e2a8 (patch) | |
tree | 169edc693d030af7669d97be13a7c2e968b04341 /bench | |
parent | 7a8e7b0d89707f4c49fae7bf9b4c3697a11cd484 (diff) | |
download | mongo-524dd078562cc7a7bb9f797fe5d07caf7672e2a8.tar.gz |
WT-2025: Inline the gcc/lint (but not the Windows) atomic functions so
we get type checking and arguments are never evaluated more than once.
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 f079d6272d7..5b4d849e546 100644 --- a/bench/wtperf/wtperf.c +++ b/bench/wtperf/wtperf.c @@ -100,7 +100,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_add8(&cfg->insert_key, 1)); } static void @@ -151,7 +151,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_add4(tables, (uint32_t)-1); break; case WT_AOP_INSERT: trk = &thread->insert; @@ -186,7 +186,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_add8(&trk->ops, 1); return (0); } err: |