Commit 66950202 authored by Christopher Dykes's avatar Christopher Dykes Committed by Facebook Github Bot 3

Handle MSVC's preprocessor oddities in the SharedMutex test

Summary: MSVC needs a bit more glue to expand the varargs.

Reviewed By: yfeldblum

Differential Revision: D3614681

fbshipit-source-id: 901d8c5138b1d2d28434c51bdff31f6d21f26681
parent 0b57311a
...@@ -1371,8 +1371,8 @@ BENCHMARK(single_thread_lock_unlock, iters) { ...@@ -1371,8 +1371,8 @@ BENCHMARK(single_thread_lock_unlock, iters) {
} }
} }
#define BENCH_BASE(...) BENCHMARK_NAMED_PARAM(__VA_ARGS__) #define BENCH_BASE(...) FB_VA_GLUE(BENCHMARK_NAMED_PARAM, (__VA_ARGS__))
#define BENCH_REL(...) BENCHMARK_RELATIVE_NAMED_PARAM(__VA_ARGS__) #define BENCH_REL(...) FB_VA_GLUE(BENCHMARK_RELATIVE_NAMED_PARAM, (__VA_ARGS__))
// 100% reads. Best-case scenario for deferred locks. Lock is colocated // 100% reads. Best-case scenario for deferred locks. Lock is colocated
// with read data, so inline lock takes cache miss every time but deferred // with read data, so inline lock takes cache miss every time but deferred
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment