summaryrefslogtreecommitdiff
path: root/port
diff options
context:
space:
mode:
authorIslam AbdelRahman <tec@fb.com>2016-08-26 10:41:35 -0700
committerIslam AbdelRahman <tec@fb.com>2016-08-26 10:41:35 -0700
commite9b2af87f8db3537762821f75d0d716246a7d743 (patch)
treea455c5245ab1372a2d4f359afbbea277d9e7bd8e /port
parent23a057007c826e9735837b34b6ba6a008c4ff8ea (diff)
Expose ThreadPool under include/rocksdb/threadpool.h
Summary: This diff split ThreadPool to -ThreadPool (abstract interface exposed in include/rocksdb/threadpool.h) -ThreadPoolImpl (actual implementation in util/threadpool_imp.h) This allow us to expose ThreadPool to the user so we can use it as an option later Test Plan: existing unit tests Reviewers: andrewkr, yiwu, yhchiang, sdong Reviewed By: sdong Subscribers: andrewkr, dhruba Differential Revision: https://reviews.facebook.net/D62085
Diffstat (limited to 'port')
-rw-r--r--port/win/env_win.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/port/win/env_win.h b/port/win/env_win.h
index 9b1e012c9..2c994f2a4 100644
--- a/port/win/env_win.h
+++ b/port/win/env_win.h
@@ -17,7 +17,7 @@
#pragma once
#include <rocksdb/env.h>
-#include "util/threadpool.h"
+#include "util/threadpool_imp.h"
#include <mutex>
#include <vector>
@@ -63,7 +63,7 @@ private:
Env* hosted_env_;
mutable std::mutex mu_;
- std::vector<ThreadPool> thread_pools_;
+ std::vector<ThreadPoolImpl> thread_pools_;
std::vector<std::thread> threads_to_join_;
};
@@ -268,9 +268,8 @@ public:
private:
WinEnvIO winenv_io_;
- WinEnvThreads winenv_threads_;
-
+ WinEnvThreads winenv_threads_;
};
}
-} \ No newline at end of file
+}