EXPECT_EQ(cpu, again);
}
+#ifdef FOLLY_TLS
static FOLLY_TLS unsigned testingCpu = 0;
static int testingGetcpu(unsigned* cpu, unsigned* node, void* /* unused */) {
}
return 0;
}
+#endif
TEST(AccessSpreader, Simple) {
for (size_t s = 1; s < 200; ++s) {
}
}
+#ifdef FOLLY_TLS
#define DECLARE_SPREADER_TAG(tag, locality, func) \
namespace { \
template <typename dummy> \
struct tag {}; \
} \
- DECLARE_ACCESS_SPREADER_TYPE(tag) \
namespace folly { \
namespace detail { \
template <> \
}
}
}
+#endif