[Webkit-unassigned] [Bug 180308] New: WTF shouldn't have both Thread and ThreadIdentifier

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Dec 2 00:28:49 PST 2017


            Bug ID: 180308
           Summary: WTF shouldn't have both Thread and ThreadIdentifier
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Template Framework
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: fpizlo at apple.com

I find it strange that we often compare threads by doing:

Thread& a = ...
Thread& b = ...
a==b // loads id() from a, loads id() from b, compares id's

In reality, == comparisons for Thread* reveal thread equality.

I think we should get rid of ThreadIdentifier.  Moreover, to encourage == comparison of Thread, we should encourage using Thread by pointer rather than by reference.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20171202/5f279a7f/attachment-0001.html>

More information about the webkit-unassigned mailing list