<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>142448</bug_id>
          
          <creation_ts>2015-03-07 20:23:47 -0800</creation_ts>
          <short_desc>DumpRenderTree and WebKitTestRunner should rename WorkQueue to something that will not be confused with WTF::WorkQueue</short_desc>
          <delta_ts>2015-03-10 15:55:17 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Brent Fulgham">bfulgham</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>andersca</cc>
    
    <cc>bfulgham</cc>
    
    <cc>koivisto</cc>
    
    <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1075335</commentid>
    <comment_count>0</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2015-03-07 20:23:47 -0800</bug_when>
    <thetext>For historical reasons, DumpRenderTree and WebKitTestRunner have their own WorkQueue implementations. Now that WorkQueue lives in WTF, we should merge these disparate implementations and standardize on one implementation. This will simplify the code, as well as increasing the test coverage for this functionality.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1075473</commentid>
    <comment_count>1</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2015-03-08 16:56:34 -0700</bug_when>
    <thetext>The WorkQueue classes in DRT and WKTR are not threading primitives like WTF::WorkQueue, but rather just a plain old queue of things to do (it&apos;s actually quite similar to WTF::MessageQueue). Having the same name does complicate things here, I admit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1075777</commentid>
    <comment_count>2</comment_count>
    <who name="Anders Carlsson">andersca</who>
    <bug_when>2015-03-09 15:13:55 -0700</bug_when>
    <thetext>Are they really similar enough to WTF::WorkQueue that we could just use it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1075779</commentid>
    <comment_count>3</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2015-03-09 15:21:25 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Are they really similar enough to WTF::WorkQueue that we could just use it?

Maybe not. I notice the DRT/WKTR version has the concept of being &quot;frozen&quot;, which seems to mean &quot;ignore any passed dispatch functions&quot;. I&apos;m not sure we would want that &quot;feature&quot; to be part of the WTF::WorkQueue implementation, so maybe we should just leave things as-is.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1076079</commentid>
    <comment_count>4</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2015-03-10 14:19:39 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; Are they really similar enough to WTF::WorkQueue that we could just use it?
&gt; 
&gt; Maybe not. I notice the DRT/WKTR version has the concept of being &quot;frozen&quot;,
&gt; which seems to mean &quot;ignore any passed dispatch functions&quot;. I&apos;m not sure we
&gt; would want that &quot;feature&quot; to be part of the WTF::WorkQueue implementation,
&gt; so maybe we should just leave things as-is.

We should probably just mutate this bug into renaming the DRT/WKTR classes. I have not good ideas for names.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>