Changeset 228478 in webkit


Ignore:
Timestamp:
Feb 14, 2018 11:47:57 AM (6 years ago)
Author:
wilander@apple.com
Message:

Make maximumParallelReadCount static to fix lambda capture error in WebKit::NetworkCache::Storage::traverse()
https://bugs.webkit.org/show_bug.cgi?id=182797
<rdar://problem/37540594>

Reviewed by Tim Horton.

This capture was added in r228455 and causes a build failure when
run with -Wunused-lambda-capture. Xcode also warns about it.

  • NetworkProcess/cache/NetworkCacheStorage.cpp:

(WebKit::NetworkCache::Storage::traverse):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r228473 r228478  
     12018-02-14  John Wilander  <wilander@apple.com>
     2
     3        Make maximumParallelReadCount static to fix lambda capture error in WebKit::NetworkCache::Storage::traverse()
     4        https://bugs.webkit.org/show_bug.cgi?id=182797
     5        <rdar://problem/37540594>
     6
     7        Reviewed by Tim Horton.
     8
     9        This capture was added in r228455 and causes a build failure when
     10        run with -Wunused-lambda-capture. Xcode also warns about it.
     11
     12        * NetworkProcess/cache/NetworkCacheStorage.cpp:
     13        (WebKit::NetworkCache::Storage::traverse):
     14
    1152018-02-14  Ryosuke Niwa  <rniwa@webkit.org>
    216
  • trunk/Source/WebKit/NetworkProcess/cache/NetworkCacheStorage.cpp

    r228455 r228478  
    908908            });
    909909
    910             const unsigned maximumParallelReadCount = 5;
    911             traverseOperation.activeCondition.wait(lock, [&traverseOperation, maximumParallelReadCount] {
     910            static const unsigned maximumParallelReadCount = 5;
     911            traverseOperation.activeCondition.wait(lock, [&traverseOperation] {
    912912                return traverseOperation.activeCount <= maximumParallelReadCount;
    913913            });
Note: See TracChangeset for help on using the changeset viewer.