1 #ifndef FWCore_Framework_globalTransitionAsync_h
2 #define FWCore_Framework_globalTransitionAsync_h
48 template <
typename Traits>
58 bool cleaningUpAfterException) {
65 bool cleaningUpAfterException) {
72 bool cleaningUpAfterException) {
76 template <
typename Traits>
79 typename Traits::TransitionInfoType& transitionInfo,
81 std::vector<SubProcess>& iSubProcesses) {
85 make_waiting_task([&iSubProcesses, iWait,
info = transitionInfo](std::exception_ptr
const* iPtr)
mutable {
91 for (
auto& subProcess : iSubProcesses) {
92 subProcessDoGlobalBeginTransitionAsync<Traits>(
h, subProcess,
info);
95 for (
auto& subProcess : iSubProcesses) {
96 subProcessDoGlobalBeginTransitionAsync<Traits>(iWait, subProcess,
info);
105 template <
typename Traits>
108 typename Traits::TransitionInfoType& transitionInfo,
110 std::vector<SubProcess>& iSubProcesses,
111 bool cleaningUpAfterException) {
114 auto subs =
make_waiting_task([&iSubProcesses, iWait,
info = transitionInfo, cleaningUpAfterException](
115 std::exception_ptr
const* iPtr)
mutable {
121 for (
auto& subProcess : iSubProcesses) {
125 for (
auto& subProcess : iSubProcesses) {