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
3
namespace
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
*/
13
enum class
OrderPolicy
:
unsigned
char
{
14
Fifo
= 0,
15
Same
= 1,
16
};
17
18
}
// namespace yaclib
yaclib
Definition
base_core.hpp:18
yaclib::OrderPolicy
OrderPolicy
This Policy describe how algorithm produce result.
Definition
order_policy.hpp:13
yaclib::OrderPolicy::Fifo
@ Fifo
yaclib::OrderPolicy::Same
@ Same
include
yaclib
util
order_policy.hpp
Generated by
1.9.8