#include <stdint.h>
#include <string>
+#include "port/port.h"
#include "rocksdb/perf_level.h"
// A thread local context for gathering io-stats efficiently and transparently.
};
#ifdef ROCKSDB_SUPPORT_THREAD_LOCAL
- #if defined(_MSC_VER) && !defined(__thread)
- // Thread local storage on Linux
- // There is thread_local in C++11
- #define __thread __declspec(thread)
- #endif
- extern __thread IOStatsContext iostats_context;
+extern __thread IOStatsContext iostats_context;
#endif
} // namespace rocksdb
#include <stdint.h>
#include <string>
+#include "port/port.h"
#include "rocksdb/perf_level.h"
namespace rocksdb {
PerfContext *getPerfContext();
#define perf_context (*getPerfContext())
#else
- #if defined(_MSC_VER) && !defined(__thread)
- // Thread local storage on Linux
- // There is thread_local in C++11
- #define __thread __declspec(thread)
- #endif
extern __thread PerfContext perf_context;
#endif
#endif