summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/cache_util_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/disk_cache/cache_util_win.cc')
-rw-r--r--net/disk_cache/cache_util_win.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/disk_cache/cache_util_win.cc b/net/disk_cache/cache_util_win.cc
index cb38b5f..2c1457c 100644
--- a/net/disk_cache/cache_util_win.cc
+++ b/net/disk_cache/cache_util_win.cc
@@ -111,8 +111,8 @@ bool DeleteCacheFile(const std::wstring& name) {
return DeleteFile(name.c_str()) ? true : false;
}
-void WaitForPendingIO(int num_pending_io) {
- while (num_pending_io) {
+void WaitForPendingIO(int* num_pending_io) {
+ while (*num_pending_io) {
// Asynchronous IO operations may be in flight and the completion may end
// up calling us back so let's wait for them (we need an alertable wait).
// The idea is to let other threads do usefull work and at the same time