A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
convert src/mc/mc_replay.h into mc_replay.hpp (+ don't use C linkage on C++ datatypes)
[simgrid.git]
/
src
/
simix
/
smx_global.cpp
diff --git
a/src/simix/smx_global.cpp
b/src/simix/smx_global.cpp
index d6124367cc767233b639303a53ea36fc46a32c9d..6e770e8fcc30c18d774647b13b6c648be775bf17 100644
(file)
--- a/
src/simix/smx_global.cpp
+++ b/
src/simix/smx_global.cpp
@@
-23,7
+23,7
@@
#include "mc/mc.h"
#include "simgrid/sg_config.h"
#include "mc/mc.h"
#include "simgrid/sg_config.h"
-#include "src/mc/mc_replay.h"
+#include "src/mc/mc_replay.h
pp
"
#include "src/surf/StorageImpl.hpp"
#include "src/smpi/include/smpi_process.hpp"
#include "src/surf/StorageImpl.hpp"
#include "src/smpi/include/smpi_process.hpp"
@@
-66,7
+66,7
@@
public:
void (*SMPI_switch_data_segment)(int) = nullptr;
int _sg_do_verbose_exit = 1;
void (*SMPI_switch_data_segment)(int) = nullptr;
int _sg_do_verbose_exit = 1;
-static void inthandler(int
ignored
)
+static void inthandler(int)
{
if ( _sg_do_verbose_exit ) {
XBT_INFO("CTRL-C pressed. The current status will be displayed before exit (disable that behavior with option 'verbose-exit').");
{
if ( _sg_do_verbose_exit ) {
XBT_INFO("CTRL-C pressed. The current status will be displayed before exit (disable that behavior with option 'verbose-exit').");
@@
-79,7
+79,7
@@
static void inthandler(int ignored)
}
#ifndef _WIN32
}
#ifndef _WIN32
-static void segvhandler(int signum, siginfo_t
*siginfo, void *context
)
+static void segvhandler(int signum, siginfo_t
* siginfo, void* /*context*/
)
{
if (siginfo->si_signo == SIGSEGV && siginfo->si_code == SEGV_ACCERR) {
fprintf(stderr, "Access violation detected.\n"
{
if (siginfo->si_signo == SIGSEGV && siginfo->si_code == SEGV_ACCERR) {
fprintf(stderr, "Access violation detected.\n"
@@
-411,7
+411,7
@@
static bool SIMIX_execute_tasks()
*/
void SIMIX_run()
{
*/
void SIMIX_run()
{
- if (
MC_record_path
) {
+ if (
not MC_record_path.empty()
) {
simgrid::mc::replay(MC_record_path);
return;
}
simgrid::mc::replay(MC_record_path);
return;
}