rocksdb/monitoring
Aaron Gao 7f6c02dda1 using ThreadLocalPtr to hide ROCKSDB_SUPPORT_THREAD_LOCAL from public…
Summary:
… headers

https://github.com/facebook/rocksdb/pull/2199 should not reference RocksDB-specific macros (like ROCKSDB_SUPPORT_THREAD_LOCAL in this case) to public headers, `iostats_context.h` and `perf_context.h`. We shouldn't do that because users have to provide these compiler flags when building their binary with RocksDB.

We should hide the thread local global variable inside our implementation and just expose a function api to retrieve these variables. It may break some users for now but good for long term.

make check -j64
Closes https://github.com/facebook/rocksdb/pull/2380

Differential Revision: D5177896

Pulled By: lightmark

fbshipit-source-id: 6fcdfac57f2e2dcfe60992b7385c5403f6dcb390
2017-06-02 17:26:19 -07:00
..
histogram_test.cc Add GPLv2 as an alternative license. 2017-04-27 18:06:12 -07:00
histogram_windowing.cc Add GPLv2 as an alternative license. 2017-04-27 18:06:12 -07:00
histogram_windowing.h Add GPLv2 as an alternative license. 2017-04-27 18:06:12 -07:00
histogram.cc Add GPLv2 as an alternative license. 2017-04-27 18:06:12 -07:00
histogram.h Add GPLv2 as an alternative license. 2017-04-27 18:06:12 -07:00
instrumented_mutex.cc Add GPLv2 as an alternative license. 2017-04-27 18:06:12 -07:00
instrumented_mutex.h Add GPLv2 as an alternative license. 2017-04-27 18:06:12 -07:00
iostats_context_imp.h using ThreadLocalPtr to hide ROCKSDB_SUPPORT_THREAD_LOCAL from public… 2017-06-02 17:26:19 -07:00
iostats_context_test.cc using ThreadLocalPtr to hide ROCKSDB_SUPPORT_THREAD_LOCAL from public… 2017-06-02 17:26:19 -07:00
iostats_context.cc using ThreadLocalPtr to hide ROCKSDB_SUPPORT_THREAD_LOCAL from public… 2017-06-02 17:26:19 -07:00
perf_context_imp.h using ThreadLocalPtr to hide ROCKSDB_SUPPORT_THREAD_LOCAL from public… 2017-06-02 17:26:19 -07:00
perf_context.cc using ThreadLocalPtr to hide ROCKSDB_SUPPORT_THREAD_LOCAL from public… 2017-06-02 17:26:19 -07:00
perf_level_imp.h cross-platform compatibility improvements 2017-05-15 16:15:38 -07:00
perf_level.cc cross-platform compatibility improvements 2017-05-15 16:15:38 -07:00
perf_step_timer.h Add GPLv2 as an alternative license. 2017-04-27 18:06:12 -07:00
statistics_test.cc Add GPLv2 as an alternative license. 2017-04-27 18:06:12 -07:00
statistics.cc Core-local statistics 2017-05-23 10:42:59 -07:00
statistics.h Core-local statistics 2017-05-23 10:42:59 -07:00
thread_status_impl.cc Move various string utility functions into string_util 2017-04-06 14:54:12 -07:00
thread_status_updater_debug.cc Move some files under util/ to separate dirs 2017-04-05 19:09:16 -07:00
thread_status_updater.cc Move some files under util/ to separate dirs 2017-04-05 19:09:16 -07:00
thread_status_updater.h Move some files under util/ to separate dirs 2017-04-05 19:09:16 -07:00
thread_status_util_debug.cc Move some files under util/ to separate dirs 2017-04-05 19:09:16 -07:00
thread_status_util.cc Move some files under util/ to separate dirs 2017-04-05 19:09:16 -07:00
thread_status_util.h Move some files under util/ to separate dirs 2017-04-05 19:09:16 -07:00