\li new tags in xml files
\section simgrid_dev_guide_api How to add a new MSG function?
-
Search for expression \"TUTORIAL: New API\".
\verbatim
user@caraja:~/workspace/simgrid/src$ cg "TUTORIAL: New API"
> [ 0.000000] (11:node@Tanguay) Hi, I'm going to join the network with id 000003ff
> [ 0.000000] (12:node@Morin) Hi, I'm going to join the network with id 000007ff
> [ 0.000000] (13:node@Ethernet) Hi, I'm going to join the network with id 00000fff
-> [900.000000] ( 0:@) Messages created: 1046
+> [900.000000] ( 0:@) Messages created: 1277
> [900.000000] ( 0:@) Simulated time: 900
> [900.000000] ( 1:node@Jacquelin) 8/8 FIND_NODE have succeeded
> [900.000000] ( 2:node@Boivin) 7/7 FIND_NODE have succeeded
msg_comm_t receive_comm; //current receiving communication.
msg_task_t task_received; //current task being received
- char mailbox[MAILBOX_NAME_SIZE]; //node mailbox
+ char mailbox[MAILBOX_NAME_SIZE+1]; //node mailbox
unsigned int find_node_success; //Number of find_node which have succeeded.
unsigned int find_node_failed; //Number of find_node which have failed.