Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(353)

Unified Diff: net/disk_cache/in_flight_io.cc

Issue 11649028: Add an IO thread index bitmap to disk cache. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: windows build fix Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/disk_cache/in_flight_io.cc
diff --git a/net/disk_cache/in_flight_io.cc b/net/disk_cache/in_flight_io.cc
index 51ad986a91632c17836a9fe46035fa661593506f..3c3c1161a1fd4a0f07611ef221ef6750fcb4da35 100644
--- a/net/disk_cache/in_flight_io.cc
+++ b/net/disk_cache/in_flight_io.cc
@@ -48,6 +48,13 @@ void BackgroundIO::NotifyController() {
controller_->OnIOComplete(this);
}
+scoped_refptr<base::MessageLoopProxy> BackgroundIO::GetCallbackThread() {
+ base::AutoLock lock(controller_lock_);
+ if (!controller_)
+ return NULL;
+ return controller_->callback_thread();
+}
+
void InFlightIO::WaitForPendingIO() {
while (!io_list_.empty()) {
// Block the current thread until all pending IO completes.

Powered by Google App Engine
This is Rietveld 408576698