${CMAKE_HOME_DIRECTORY}/examples/s4u/${example}/s4u-${example}.tesh)
endforeach()
-if (NOT enable_memcheck)
+if (NOT enable_memcheck AND NOT WIN32)
ADD_TESH(simix-breakpoint --setenv bindir=${CMAKE_CURRENT_BINARY_DIR}/app-pingpong
--setenv platfdir=${CMAKE_HOME_DIRECTORY}/examples/platforms
${CMAKE_CURRENT_SOURCE_DIR}/app-pingpong/simix-breakpoint.tesh)
#endif
#include <boost/heap/fibonacci_heap.hpp>
+#include <csignal>
XBT_LOG_NEW_CATEGORY(simix, "All SIMIX categories");
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(simix_kernel, simix, "Logging specific to SIMIX (kernel)");
}
#endif /* HAVE_SMPI */
}
- raise(signum);
+ std::raise(signum);
}
char sigsegv_stack[SIGSTKSZ]; /* alternate stack for SIGSEGV handler */
simgrid::kernel::actor::create_maestro(maestro_code);
/* Prepare to display some more info when dying on Ctrl-C pressing */
- signal(SIGINT, inthandler);
+ std::signal(SIGINT, inthandler);
#ifndef _WIN32
install_segvhandler();
if (simgrid::simix::breakpoint >= 0.0 && time >= simgrid::simix::breakpoint) {
XBT_DEBUG("Breakpoint reached (%g)", simgrid::simix::breakpoint.get());
simgrid::simix::breakpoint = -1.0;
- raise(SIGTRAP);
+#ifdef SIGTRAP
+ std::raise(SIGTRAP);
+#else
+ std::raise(SIGABRT);
+#endif
}
SIMIX_execute_tasks();