~raof/mir/fix-threaded-dispatcher-death-test-race

Viewing all changes in revision 3913.

  • Committer: Christopher James Halse Rogers
  • Date: 2017-01-09 02:51:17 UTC
  • Revision ID: christopher.halse.rogers@canonical.com-20170109025117-9yn9lmi4myldis0c
Fix race in destroying_dispatcher_from_a_callback_is_an_error.

We need std::atomic<> because we're crossing a thread boundary here, and we should wait until after
dispatcher is assigned to before triggering the destroying Dispatchable.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: