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-2018 Canonical Ltd.
Generated on Thu Mar 15 13:04:52 UTC 2018