~vanvugt/mir/this-should-fail-1

« back to all changes in this revision

Viewing changes to src/include/server/mir/glib_main_loop.h

  • Committer: Tarmac
  • Author(s): Christopher James Halse Rogers
  • Date: 2016-04-05 11:18:49 UTC
  • mfrom: (3431.1.3 trunk)
  • Revision ID: tarmac-20160405111849-ddnnq0q3zuvrz6zj
Make mt::Alarm own the LockableCallback its going to dispatch.

This makes it easier to implement some forms of mt::Alarm.

Approved by mir-ci-bot, Cemil Azizoglu, Alberto Aguirre, Kevin DuBois, Brandon Schaefer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
        std::function<void()> const& callback) override;
84
84
 
85
85
    std::unique_ptr<mir::time::Alarm> create_alarm(
86
 
        std::shared_ptr<LockableCallback> const& callback) override;
 
86
        std::unique_ptr<LockableCallback> callback) override;
87
87
 
88
88
    void reprocess_all_sources();
89
89