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
Put XBT_WARN when try to use channel and not alias system.
[simgrid.git]
/
src
/
msg
/
msg_global.c
diff --git
a/src/msg/msg_global.c
b/src/msg/msg_global.c
index
b7d7b6e
..
2a91cb0
100644
(file)
--- a/
src/msg/msg_global.c
+++ b/
src/msg/msg_global.c
@@
-112,6
+112,7
@@
void MSG_global_init(int *argc, char **argv)
*/
MSG_error_t MSG_set_channel_number(int number)
{
*/
MSG_error_t MSG_set_channel_number(int number)
{
+ XBT_WARN("DEPRECATED! Now use alias");
xbt_assert((msg_global)
&& (msg_global->max_channel == 0),
"Channel number already set!");
xbt_assert((msg_global)
&& (msg_global->max_channel == 0),
"Channel number already set!");
@@
-130,6
+131,7
@@
MSG_error_t MSG_set_channel_number(int number)
*/
int MSG_get_channel_number(void)
{
*/
int MSG_get_channel_number(void)
{
+ XBT_WARN("DEPRECATED! Now use alias");
xbt_assert((msg_global)
&& (msg_global->max_channel != 0),
"Channel number not set yet!");
xbt_assert((msg_global)
&& (msg_global->max_channel != 0),
"Channel number not set yet!");