Mir
Namespaces | Functions
spin_wait.h File Reference
#include <functional>
#include <chrono>
Include dependency graph for spin_wait.h:

Go to the source code of this file.

Namespaces

 mir
 AutoUnblockThread is a helper thread class that can gracefully shutdown at destruction time.
 
 mir::test
 

Functions

bool mir::test::spin_wait_for_condition_or_timeout (std::function< bool()> const &condition, std::chrono::milliseconds timeout, std::chrono::milliseconds spin_period=std::chrono::milliseconds{10})
 

Copyright © 2012-2017 Canonical Ltd.
Generated on Wed Oct 11 15:14:10 UTC 2017