Mir
Public Member Functions | List of all members
mir::test::Signal Class Reference

A threadsafe, waitable signal. More...

#include <signal.h>

Public Member Functions

void raise ()
 
bool raised ()
 
void wait ()
 
template<typename rep , typename period >
bool wait_for (std::chrono::duration< rep, period > delay)
 
template<class Clock , class Duration >
bool wait_until (std::chrono::time_point< Clock, Duration > const &time)
 
void reset ()
 

Detailed Description

A threadsafe, waitable signal.

Member Function Documentation

◆ raise()

void mir::test::Signal::raise ( )

◆ raised()

bool mir::test::Signal::raised ( )

◆ reset()

void mir::test::Signal::reset ( )

◆ wait()

void mir::test::Signal::wait ( )

◆ wait_for()

template<typename rep , typename period >
bool mir::test::Signal::wait_for ( std::chrono::duration< rep, period >  delay)
inline

◆ wait_until()

template<class Clock , class Duration >
bool mir::test::Signal::wait_until ( std::chrono::time_point< Clock, Duration > const &  time)
inline

The documentation for this class was generated from the following file:

Copyright © 2012-2018 Canonical Ltd.
Generated on Thu Apr 5 15:26:05 UTC 2018