Mir
|
An executor abstraction mostly compatible with C++ proposal N4414. More...
#include <executor.h>
Public Member Functions | |
virtual void | spawn (std::function< void()> &&work)=0 |
Schedule some function to be called sometime in the future. More... | |
Protected Member Functions | |
virtual | ~Executor ()=default |
An executor abstraction mostly compatible with C++ proposal N4414.
As specified in http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0008r0.pdf
This should hopefully be compatible with whatever the C++ Executors and Schedulers group come up with as a final design, and will eventually be replaced by the standard version.
If not, this minimal interface should be easy to implement on top of whatever emerges from the standards body.
|
protectedvirtualdefault |
|
pure virtual |
Schedule some function to be called sometime in the future.
It is expected that this not eagerly execute, and will return before work() is executed.
[in] | work | Function to execute in Executor specified environment. |
Copyright © 2012-2016 Canonical Ltd.
Generated on Mon Jun 5 13:49:26 UTC 2017