rocksdb/port/win
Andrew Kryczka 6cc9aef162 New API for background work in single thread pool
Summary:
Previously users could set `max_background_flushes=0` to force rocksdb to use a single thread pool for both background flushes and compactions. That'll no longer be possible since I'm going to deprecate `max_background_flushes` and `max_background_compactions` in favor of a single option. This diff introduces a new way to force a single thread pool: when high-pri pool has zero threads, all background jobs will be submitted to low-pri pool.

Note the majority of the code change is adding `Env::GetBackgroundThreads()`, which is necessary to check whether the user has provided a zero-sized thread pool.
Closes https://github.com/facebook/rocksdb/pull/2204

Differential Revision: D4936256

Pulled By: ajkr

fbshipit-source-id: 929a07a0c0705f7766f5339cd013ff74e90d6e01
2017-05-23 11:12:27 -07:00
..
env_default.cc Add GPLv2 as an alternative license. 2017-04-27 18:06:12 -07:00
env_win.cc New API for background work in single thread pool 2017-05-23 11:12:27 -07:00
env_win.h New API for background work in single thread pool 2017-05-23 11:12:27 -07:00
io_win.cc Fix mingw compilation with -DNDEBUG 2017-05-17 22:56:48 -07:00
io_win.h travis: add Windows cross-compilation 2017-05-05 23:20:01 -07:00
port_win.cc Add GPLv2 as an alternative license. 2017-04-27 18:06:12 -07:00
port_win.h Define CACHE_LINE_SIZE only when it's not defined 2017-05-08 16:12:28 -07:00
win_logger.cc Add GPLv2 as an alternative license. 2017-04-27 18:06:12 -07:00
win_logger.h travis: add Windows cross-compilation 2017-05-05 23:20:01 -07:00
win_thread.cc travis: add Windows cross-compilation 2017-05-05 23:20:01 -07:00
win_thread.h Add GPLv2 as an alternative license. 2017-04-27 18:06:12 -07:00
xpress_win.cc travis: add Windows cross-compilation 2017-05-05 23:20:01 -07:00
xpress_win.h Add GPLv2 as an alternative license. 2017-04-27 18:06:12 -07:00