#include "../include/Environment.h" namespace environment { void Environment::stop(uint32_t num_context) { cout(" : num_context : %d\n",num_context); cout(" : context_stop : %d\n",context_stop [num_context]); cout(" : nb_context_stop : %d\n",nb_context_stop); if (context_stop [num_context] == false) { context_stop [num_context] = true; nb_context_stop ++; if (nb_context_stop >= param->nb_thread) { cout(" : end simulation\n"); sc_stop(); } } } };