Summary: Because, unfortunately, `pthread_exit` is not marked as noreturn in the pthread library primarily used on Windows, we need to return something to avoid errors.
Reviewed By: yfeldblum
Differential Revision:
D3571465
fbshipit-source-id:
4713b2364d6584ae255fb83cd21406fdc33ee299
#include <thread>
#include <atomic>
#include <memory>
+
+#include <folly/Assume.h>
#include <folly/Benchmark.h>
#include <folly/Conv.h>
#include <folly/portability/Atomic.h>
}
}
pthread_exit((void *) numInserted);
+ folly::assume(false);
}
TEST(Ahm, atomic_hash_array_insert_race) {
AHA* arr = atomicHashArrayInsertRaceArray.get();