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
Cleanup in log categories
[simgrid.git]
/
teshsuite
/
mc
/
mutex-handling
/
mutex-handling.cpp
diff --git
a/teshsuite/mc/mutex-handling/mutex-handling.cpp
b/teshsuite/mc/mutex-handling/mutex-handling.cpp
index
236c5f3
..
cd09206
100644
(file)
--- a/
teshsuite/mc/mutex-handling/mutex-handling.cpp
+++ b/
teshsuite/mc/mutex-handling/mutex-handling.cpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2015-202
1
. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2015-202
2
. 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. */
/* 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. */
@@
-24,7
+24,7
@@
#include "simgrid/s4u/Mailbox.hpp"
#include "simgrid/s4u/Mutex.hpp"
#include "simgrid/s4u/Mailbox.hpp"
#include "simgrid/s4u/Mutex.hpp"
-XBT_LOG_NEW_DEFAULT_CATEGORY(m
sg_test, "Messages specific for this msg example
");
+XBT_LOG_NEW_DEFAULT_CATEGORY(m
utex_handling, "Messages specific for this test
");
static int receiver(const char* box_name)
{
static int receiver(const char* box_name)
{
@@
-59,8
+59,9
@@
static int sender(const char* box_name, simgrid::s4u::MutexPtr mutex, int value)
int main(int argc, char* argv[])
{
simgrid::s4u::Engine e(&argc, argv);
int main(int argc, char* argv[])
{
simgrid::s4u::Engine e(&argc, argv);
- xbt_assert(argc > 1, "Usage: %s platform_file\n"
- "\tExample: %s msg_platform.xml\n",
+ xbt_assert(argc > 1,
+ "Usage: %s platform_file\n"
+ "\tExample: %s platform.xml\n",
argv[0], argv[0]);
simgrid::s4u::MutexPtr mutex;
argv[0], argv[0]);
simgrid::s4u::MutexPtr mutex;
@@
-74,7
+75,7
@@
int main(int argc, char* argv[])
simgrid::s4u::Actor::create("sender", e.host_by_name("Fafard"), sender, "box", mutex, 2);
e.run();
simgrid::s4u::Actor::create("sender", e.host_by_name("Fafard"), sender, "box", mutex, 2);
e.run();
- XBT_INFO("Simulation time %g",
e.
get_clock());
+ XBT_INFO("Simulation time %g",
simgrid::s4u::Engine::
get_clock());
return 0;
}
return 0;
}