return id;
}
- static void destroy(int id) {
+ static void destroy(size_t id) {
try {
auto & meta = instance();
// Elements in other threads that use this id.
#endif
}
- static ElementWrapper& get(int id) {
+ static ElementWrapper& get(size_t id) {
ThreadEntry* threadEntry = getThreadEntry();
if (UNLIKELY(threadEntry->elementsCapacity <= id)) {
reserve(id);
} // namespace folly
#endif /* FOLLY_DETAIL_THREADLOCALDETAIL_H_ */
-