~raof/mir/provide-event-fd

Viewing all changes in revision 2351.

  • Committer: Christopher James Halse Rogers
  • Date: 2015-03-18 05:06:35 UTC
  • Revision ID: christopher.halse.rogers@canonical.com-20150318050635-h3ux7aijcor2zmu8
Switch manual dispatch tests over to an eventloop thread.

This still tests that the callbacks are dispatched on the thread that called dispatch(),
but doesn't rely on implementation details like how many times you'll need to call
dispatch() after each request in order to get it processed, and is less prone to possible
races where fd readability races the while(fd_is_readable()) loop.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: