#include "xbt/xbt_os_thread.h"
#include "xbt/sysdep.h"
#include "src/simix/smx_private.h"
-#include "src/simix/smx_private.hpp"
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(xbt_parmap, xbt, "parmap: parallel map");
xbt_parmap_thread_data_t data = (xbt_parmap_thread_data_t) arg;
xbt_parmap_t parmap = data->parmap;
unsigned round = 0;
- smx_context_t context = SIMIX_context_new(NULL, 0, NULL, NULL, NULL);
+ smx_context_t context = SIMIX_context_new(std::function<void()>(), NULL, NULL);
SIMIX_context_set_current(context);
XBT_DEBUG("New worker thread created");
XBT_DEBUG("Worker %d has finished", data->worker_id);
/* We are destroying the parmap */
} else {
- SIMIX_context_free(context);
+ delete context;
xbt_free(data);
return NULL;
}