Swarm-NG  1.1
swarm::monitors::combine< log_t, Monitor1, Monitor2 > Struct Template Reference

Template to allow developer to join two monitors Signal is true if either monitor returns true. More...

#include <combine.hpp>

Static Public Member Functions

template<class T >
static GENERIC int thread_per_system (T compile_time_param)
 return the number of thread of the system, larger of the two monitors
 
template<class T >
static GENERIC int shmem_per_system (T compile_time_param)
 return the shared memory amount, larger of the two monitors
 

Detailed Description

template<class log_t, class Monitor1, class Monitor2>
struct swarm::monitors::combine< log_t, Monitor1, Monitor2 >

Template to allow developer to join two monitors Signal is true if either monitor returns true.

The order of the monitors is important. They are executed in order and in case of stoppers it can affect the execution. If the first one flags the system as disabled and the second one flags it as inactive then there is a problem.

It can be used in an expression to join more than two monitors Example: combine_monitors< combine_monitors< Monitor1, Monitor2> , Monitor3 >

EXPERIMENTAL: This class is not thoroughly tested.

Definition at line 68 of file combine.hpp.


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