<?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>158208</bug_id>
          
          <creation_ts>2016-05-30 09:11:30 -0700</creation_ts>
          <short_desc>Add templated form of RunLoop::dispatch for posting cross thread tasks</short_desc>
          <delta_ts>2016-06-01 09:34:11 -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>Web Template Framework</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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>
          <dependson>158207</dependson>
    
    <dependson>158215</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Brady Eidson">beidson</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cdumez</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1197627</commentid>
    <comment_count>0</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2016-05-30 09:11:30 -0700</bug_when>
    <thetext>Add thread-safety warning to RunLoop::dispatch to tasks posted from a different thread.

This safety warning can eventually become an ASSERT or other hard failures.

After the safety warning is in place, we will add a new templated function for dispatching cross thread tasks that will use CrossThreadCopier (https://bugs.webkit.org/show_bug.cgi?id=158207)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1197628</commentid>
    <comment_count>1</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2016-05-30 09:15:15 -0700</bug_when>
    <thetext>Retitling:
Add templated form of RunLoop::dispatch for posting cross thread tasks

Figured it doesn&apos;t make sense to add the warning before adding the alternative to resolve it.

In fact, maybe the warning comes later.

I&apos;ll see how big the patches get once I&apos;m working on this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1198035</commentid>
    <comment_count>2</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2016-05-31 18:36:26 -0700</bug_when>
    <thetext>Doing this the way I was originally envisioning turned out to be impossible (or at least difficult beyond my ability to figure out)

I&apos;m looking at some alternatives.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1198179</commentid>
    <comment_count>3</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2016-06-01 09:34:11 -0700</bug_when>
    <thetext>Do to the general lack of introspection and templatization of lambdas, I currently don&apos;t think there&apos;s a great solution to this.

Will leave the bug open because it&apos;s something we should do once able.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>