YACLib
C++ library for concurrent tasks execution
Loading...
Searching...
No Matches
order_policy.hpp
Go to the documentation of this file.
1#pragma once
2
3namespace yaclib {
4
5/**
6 * This Policy describe how algorithm produce result
7 *
8 * Fifo -- order of results is fifo
9 * Note: non-deterministic in multithreading environment
10 * Note: now it's default for WhenAll because it allow call delete early
11 * Same -- order of results same as order of input
12 */
13enum class OrderPolicy : unsigned char {
14 Fifo = 0,
15 Same = 1,
16};
17
18} // namespace yaclib
OrderPolicy
This Policy describe how algorithm produce result.