-/* Copyright (c) 2006-2017. The SimGrid Team.
- * All rights reserved. */
+/* Copyright (c) 2006-2019. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
public:
explicit Global();
Global(const Global&) = delete;
+ Global& operator=(const Global&) = delete;
~Global();
bool watch_point_reached; /* has a task just reached a watch point? */
std::set<SD_task_t> *initial_tasks;
}
}
-extern "C" {
extern XBT_PRIVATE simgrid::sd::Global *sd_global;
/* Task */
simgrid::kernel::resource::Action* surf_action;
unsigned short watch_points; /* bit field xor()ed with masks */
- int marked; /* used to check if the task DAG has some cycle*/
+ bool marked = false; /* used to check if the task DAG has some cycle*/
- /* dependencies */
+ /* dependencies -- cannot be embedded in the struct since it's not handled as a real C++ class */
std::set<SD_task_t> *inputs;
std::set<SD_task_t> *outputs;
std::set<SD_task_t> *predecessors;
XBT_PRIVATE bool acyclic_graph_detail(xbt_dynar_t dag);
XBT_PRIVATE void uniq_transfer_task_name(SD_task_t task);
XBT_PRIVATE const char *__get_state_name(e_SD_task_state_t state);
-}
#endif