#include <parallel.hpp>
Definition at line 50 of file parallel.hpp.
◆ serial_valve()
fc::serial_valve::serial_valve |
( |
| ) |
|
◆ ~serial_valve()
fc::serial_valve::~serial_valve |
( |
| ) |
|
◆ do_serial()
template<typename Functor1 , typename Functor2 >
auto fc::serial_valve::do_serial |
( |
const Functor1 & |
f1, |
|
|
const Functor2 & |
f2 |
|
) |
| -> decltype(f2())
|
|
inline |
Executes f1() then f2(). For any two calls do_serial(f1,f2) and do_serial(f1',f2') where do_serial(f1,f2) is invoked before do_serial(f1',f2'), it is guaranteed that f2' will be executed after f2 has completed. Failure of either function counts as completion of both. If f1 throws then f2 will not be invoked.
- Parameters
-
f1 | a functor to invoke |
f2 | a functor to invoke |
- Returns
- the return value of f2()
Definition at line 81 of file parallel.hpp.
◆ ticket_guard
friend class ticket_guard |
|
friend |
The documentation for this class was generated from the following files: