<html>
    <head>
      <base href="https://bugzilla.gnome.org/" />
    </head>
    <body><span class="vcard"><a href="page.cgi?id=describeuser.html&login=jadahl%40gmail.com" title="Jonas Ådahl <jadahl@gmail.com>"> <span class="fn">Jonas Ådahl</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - gdk/wayland: event source is not multi-thread aware"
   href="https://bugzilla.gnome.org/show_bug.cgi?id=763852">bug 763852</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Attachment #324232 status</td>
           <td>none
           </td>
           <td>needs-work
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - gdk/wayland: event source is not multi-thread aware"
   href="https://bugzilla.gnome.org/show_bug.cgi?id=763852#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - gdk/wayland: event source is not multi-thread aware"
   href="https://bugzilla.gnome.org/show_bug.cgi?id=763852">bug 763852</a>
              from <span class="vcard"><a href="page.cgi?id=describeuser.html&login=jadahl%40gmail.com" title="Jonas Ådahl <jadahl@gmail.com>"> <span class="fn">Jonas Ådahl</span></a>
</span></b>
        <pre>Review of <span class=""><a href="attachment.cgi?id=324232&action=diff" name="attach_324232" title="gdk/wayland: use the multi-thread safe wayland dispatching API">attachment 324232</a> <a href="attachment.cgi?id=324232&action=edit" title="gdk/wayland: use the multi-thread safe wayland dispatching API">[details]</a></span> <a href='review?bug=763852&attachment=324232'>[review]</a>:

Indeed. The patch looks mostly good, except the inline comment and that you
don't cancel on finalize, if we ended up having prepared and not dispatched.

FWIW, the wl_display_dispatch(_queue)() API is multi-thread safe if used
correctly (i.e. don't mix poll() and dispatch() more or less), so should
probably update the commit message to reflect that.

::: gdk/wayland/gdkeventsource.c
@@ +63,3 @@
+        g_error ("Error dispatching display: %s", g_strerror (errno));
+    }
+

You should set source->reading to TRUE here.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>