~saviq/mir/ubuntu-virtual-unknown

« back to all changes in this revision

Viewing changes to include/test/mir/test/wait_condition.h

  • Committer: CI Train Bot
  • Author(s): Christopher James Halse Rogers, Daniel van Vugt, Andreas Pokorny, Kevin Gunn, Alberto Aguirre, Alan Griffiths, raof at ubuntu, CI Train Bot, Cemil Azizoglu, Kevin DuBois, Kevin, Alexandros Frantzis, Alfonso Sanchez-Beato
  • Date: 2016-03-30 00:23:12 UTC
  • mfrom: (1160.2170.114 0.21)
  • Revision ID: ci-train-bot@canonical.com-20160330002312-47z3hdu0bfj3ii1z
Mir 0.21.0 release
Approved by: Daniel van Vugt, Alan Griffiths

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
        return woken_;
59
59
    }
60
60
 
 
61
    void reset()
 
62
    {
 
63
        std::lock_guard<std::mutex> ul(guard);
 
64
        woken_ = false;
 
65
    }
 
66
 
61
67
    std::mutex guard;
62
68
    std::condition_variable condition;
63
69
    bool woken_;