1
0
mirror of https://github.com/fluencelabs/redis synced 2025-03-23 11:00:50 +00:00

19 lines
261 B
C
Raw Normal View History

2018-05-24 17:17:37 +02:00
#include "test/jemalloc_test.h"
#include "jemalloc/internal/spin.h"
TEST_BEGIN(test_spin) {
spin_t spinner = SPIN_INITIALIZER;
for (unsigned i = 0; i < 100; i++) {
spin_adaptive(&spinner);
}
}
TEST_END
int
main(void) {
return test(
test_spin);
}