size_t src_buff_size_;
void* payload_;
bool detached_;
- activity::CommImpl* comm_;
- int tag_;
+ activity::CommImpl* comm_ = {};
+ int tag_ = {};
std::function<bool(void*, void*, activity::CommImpl*)> match_fun_;
std::function<void(void*)> clean_fun_; // used to free the synchro in case of problem after a detached send
size_t* dst_buff_size_;
void* payload_;
double rate_;
- int tag_;
- activity::CommImpl* comm_;
+ activity::CommImpl* comm_ = {};
+ int tag_ = {};
std::function<bool(void*, void*, activity::CommImpl*)> match_fun_;
std::function<void(activity::CommImpl*, void*, size_t)> copy_data_fun_; // used to copy data if not default one
class LegacyUpdateCb {
std::vector<StochasticDatedValue> pattern;
-
- bool stochastic;
-
+ bool stochastic = false;
bool loop;
-
- double loop_delay;
+ double loop_delay = 0.0;
static bool is_comment_or_empty_line(const std::string& val)
{
static bool is_uniform_distribution(const std::string& val) { return (val == "UNIF" || val == "UNIFORM"); }
public:
- LegacyUpdateCb(const std::string& input, double periodicity) : stochastic(false), loop(periodicity > 0), loop_delay(0)
+ LegacyUpdateCb(const std::string& input, double periodicity) : loop(periodicity > 0)
{
int linecount = 0;
std::vector<std::string> list;