<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - Handle timeouts before events after that timeout"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=90573">90573</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Handle timeouts before events after that timeout
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Wayland
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>ASSIGNED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>libinput
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>wayland-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>peter.hutterer@who-t.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>If a timeout hits and events come in, it depends on whichever fd is read first
on what order the events are handled. If the device is handled first, the
events may be processed as if the timeout never happened.

This is particularly noticable in the test, if we call litest_timeout_..()
without a subsequent litest_dispatch(), the timeout is usually ignored.

We need a mechanism to compare event timestamps to timer triggers and yield if
the other one is earlier. This goes both ways, if litest_dispatch() didn't get
called for a while we need to process any events with times before the timeout
triggered.</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>