Project
Loading...
Searching...
No Matches
DispatchPolicy.cxx
Go to the documentation of this file.
1
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3
// All rights not expressly granted are reserved.
4
//
5
// This software is distributed under the terms of the GNU General Public
6
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7
//
8
// In applying this license CERN does not waive the privileges and immunities
9
// granted to it by virtue of its status as an Intergovernmental Organization
10
// or submit itself to any jurisdiction.
11
12
#include "
Framework/DispatchPolicy.h
"
13
#include "
Framework/DeviceSpec.h
"
14
#include <functional>
15
#include <iostream>
16
17
namespace
o2
18
{
19
namespace
framework
20
{
21
24
std::vector<DispatchPolicy>
DispatchPolicy::createDefaultPolicies
()
25
{
26
return
{
DispatchPolicy
{
"dispatch-all-after-computation"
, [](
DeviceSpec
const
&) {
return
true
; },
DispatchPolicy::DispatchOp::AfterComputation
}};
27
}
28
29
DispatchPolicy::TriggerMatcher
DispatchPolicy::defaultDispatchPolicy
()
30
{
31
return
DispatchPolicy::TriggerMatcher
{[](
Output
const
&) ->
bool
{
return
true
; }};
32
}
33
34
std::ostream&
operator<<
(std::ostream& oss,
DispatchPolicy::DispatchOp
const
&
val
)
35
{
36
switch
(
val
) {
37
case
DispatchPolicy::DispatchOp::AfterComputation
:
38
oss <<
"after computation"
;
39
break
;
40
case
DispatchPolicy::DispatchOp::WhenReady
:
41
oss <<
"when ready"
;
42
break
;
43
};
44
return
oss;
45
}
46
47
}
// namespace framework
48
}
// namespace o2
DeviceSpec.h
DispatchPolicy.h
val
GLuint GLfloat * val
Definition
glcorearb.h:1582
framework
Definition
BunchFilling.h:113
o2::framework::operator<<
std::ostream & operator<<(std::ostream &s, ChannelType const &type)
Stream operators so that we can use ChannelType with Boost.Test.
Definition
ChannelSpecHelpers.cxx:192
o2
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Definition
BitstreamReader.h:24
o2::framework::DeviceSpec
Definition
DeviceSpec.h:48
o2::framework::DispatchPolicy
Definition
DispatchPolicy.h:29
o2::framework::DispatchPolicy::defaultDispatchPolicy
static TriggerMatcher defaultDispatchPolicy()
Definition
DispatchPolicy.cxx:29
o2::framework::DispatchPolicy::DispatchOp
DispatchOp
Definition
DispatchPolicy.h:32
o2::framework::DispatchPolicy::DispatchOp::WhenReady
@ WhenReady
o2::framework::DispatchPolicy::DispatchOp::AfterComputation
@ AfterComputation
o2::framework::DispatchPolicy::TriggerMatcher
std::function< bool(Output const &)> TriggerMatcher
Definition
DispatchPolicy.h:43
o2::framework::DispatchPolicy::createDefaultPolicies
static std::vector< DispatchPolicy > createDefaultPolicies()
Helper to create the default configuration.
Definition
DispatchPolicy.cxx:24
o2::framework::Output
Definition
Output.h:27
Framework
Core
src
DispatchPolicy.cxx
Generated on Tue Feb 25 2025 17:03:21 for Project by
1.9.8