#include <folly/IndexedMemPool.h>
#include <folly/test/DeterministicSchedule.h>
+#include <folly/portability/GTest.h>
#include <folly/portability/Unistd.h>
+
#include <string>
#include <thread>
#include <semaphore.h>
-#include <gtest/gtest.h>
using namespace folly;
using namespace folly::test;
}
struct NonTrivialStruct {
- static __thread int count;
+ static FOLLY_TLS int count;
int elem_;
}
};
-__thread int NonTrivialStruct::count;
+FOLLY_TLS int NonTrivialStruct::count;
TEST(IndexedMemPool, eager_recycle) {
typedef IndexedMemPool<NonTrivialStruct> Pool;