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
useless cleanups
[simgrid.git]
/
src
/
simix
/
libsmx.cpp
diff --git
a/src/simix/libsmx.cpp
b/src/simix/libsmx.cpp
index
7bf0ed3
..
7269508
100644
(file)
--- a/
src/simix/libsmx.cpp
+++ b/
src/simix/libsmx.cpp
@@
-5,7
+5,7
@@
/* */
/* This is somehow the "libc" of SimGrid */
/* */
/* This is somehow the "libc" of SimGrid */
-/* Copyright (c) 2010-201
8
. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2010-201
9
. 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. */
@@
-166,12
+166,7
@@
void simcall_process_join(smx_actor_t process, double timeout)
/**
* @ingroup simix_process_management
/**
* @ingroup simix_process_management
- * @brief Suspends a process.
- *
- * This function suspends the process by suspending the synchro
- * it was waiting for completion.
- *
- * @param process a SIMIX process
+ * @brief Suspends an actor
*/
void simcall_process_suspend(smx_actor_t process)
{
*/
void simcall_process_suspend(smx_actor_t process)
{
@@
-389,8
+384,9
@@
int simcall_comm_test(smx_activity_t comm)
*/
smx_mutex_t simcall_mutex_init()
{
*/
smx_mutex_t simcall_mutex_init()
{
- if (not simix_global) {
- fprintf(stderr,"You must run MSG_init before using MSG\n"); // We can't use xbt_die since we may get there before the initialization
+ if (simix_global == nullptr) {
+ fprintf(stderr, "You must initialize the SimGrid engine before using it\n"); // We can't use xbt_die since we may
+ // get there before the initialization
xbt_abort();
}
return simgrid::simix::simcall([] { return new simgrid::kernel::activity::MutexImpl(); });
xbt_abort();
}
return simgrid::simix::simcall([] { return new simgrid::kernel::activity::MutexImpl(); });