<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Network Cache: Read resource record and body in parallel"
   href="https://bugs.webkit.org/show_bug.cgi?id=143879#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Network Cache: Read resource record and body in parallel"
   href="https://bugs.webkit.org/show_bug.cgi?id=143879">bug 143879</a>
              from <span class="vcard"><a class="email" href="mailto:cdumez&#64;apple.com" title="Chris Dumez &lt;cdumez&#64;apple.com&gt;"> <span class="fn">Chris Dumez</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=251023&amp;action=diff" name="attach_251023" title="more thread safety">attachment 251023</a> <a href="attachment.cgi?id=251023&amp;action=edit" title="more thread safety">[details]</a></span>
more thread safety

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=251023&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=251023&amp;action=review</a>

<span class="quote">&gt; Source/WebKit2/NetworkProcess/cache/NetworkCacheStorage.h:110
&gt; +        std::atomic&lt;unsigned&gt; finishedCount { 0 };</span >

Not sure it is best but maybe we could use 2 booleans instead (e.g. hasReadRecord, hasReadBody). Might be a little more readable than expecting this integer to be 2. Your call.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>