seams-core v2.14.2
libyodaLib, the C++ engine of d-SEAMS
Loading...
Searching...
No Matches
seams::team::detail::Call< F > Struct Template Reference

#include <src/include/internal/team_run.hpp>

Public Member Functions

void one (std::size_t stage, std::size_t chunk, std::size_t worker) noexcept

Static Public Member Functions

static void trampoline (void *ctx, std::size_t stage, std::size_t chunk, std::size_t worker) noexcept

Public Attributes

F * fn
std::atomic< bool > failed {false}
std::exception_ptr failure
std::mutex lock

Detailed Description

template<class F>
struct seams::team::detail::Call< F >

Definition at line 73 of file team_run.hpp.

Member Function Documentation

◆ one()

template<class F>
void seams::team::detail::Call< F >::one ( std::size_t stage,
std::size_t chunk,
std::size_t worker )
inlinenoexcept

Definition at line 79 of file team_run.hpp.

79 {
81 return;
82 }
83 try {
84 (*fn)(stage, chunk, static_cast<int>(worker));
85 } catch (...) {
87 if (!failure) {
89 }
91 }
92 }
std::exception_ptr failure
Definition team_run.hpp:76
std::atomic< bool > failed
Definition team_run.hpp:75

◆ trampoline()

template<class F>
void seams::team::detail::Call< F >::trampoline ( void * ctx,
std::size_t stage,
std::size_t chunk,
std::size_t worker )
inlinestaticnoexcept

Definition at line 94 of file team_run.hpp.

95 {
96 static_cast<Call *>(ctx)->one(stage, chunk, worker);
97 }
void one(std::size_t stage, std::size_t chunk, std::size_t worker) noexcept
Definition team_run.hpp:79

Member Data Documentation

◆ failed

template<class F>
std::atomic<bool> seams::team::detail::Call< F >::failed {false}

Definition at line 75 of file team_run.hpp.

◆ failure

template<class F>
std::exception_ptr seams::team::detail::Call< F >::failure

Definition at line 76 of file team_run.hpp.

◆ fn

template<class F>
F* seams::team::detail::Call< F >::fn

Definition at line 74 of file team_run.hpp.

◆ lock

template<class F>
std::mutex seams::team::detail::Call< F >::lock

Definition at line 77 of file team_run.hpp.


The documentation for this struct was generated from the following file: