\subsubsection MSG_ext_ms_master_lua Master code
- as described ine the C native master/Slave exmaple , this function has to be assigned to a m_process_t that will behave as the master.
+ as described in the C native master/Slave example, this function has to be assigned to a msg_process_t that will behave as the master.
Lua style arguments (...) in for the master are interpreted as:
- the number of tasks to distribute
\subsubsection MSG_ext_ms_slave_lua Slave code
- This function has to be assigned to a #m_process_t that has to behave as a slave.
+ This function has to be assigned to a #msg_process_t that has to behave as a slave.
This function keeps waiting for tasks and executes them as it receives them.
\until end_of_slave
\subsubsection MSG_ext_ms_bp_master_lua Master code
- as described ine the C native master/Slave exmaple , this function has to be assigned to a m_process_t that will behave as the master.
+ as described in the C native master/Slave example, this function has to be assigned to a msg_process_t that will behave as the master.
Lua style arguments (...) in for the master are interpreted as:
- the number of tasks to distribute
\subsubsection MSG_ext_ms_bp_slave_lua Slave code
- This function has to be assigned to a #m_process_t that has to behave as a slave.
+ This function has to be assigned to a #msg_process_t that has to behave as a slave.
This function keeps waiting for tasks and executes them as it receives them.
\until end_of_slave
\section instr_category_functions Tracing categories functions
\li \c TRACE_category(const char *category)
\li \c TRACE_category_with_color(const char *category, const char *color)
-\li \c MSG_task_set_category(m_task_t task, const char *category)
-\li \c MSG_task_get_category(m_task_t task)
+\li \c MSG_task_set_category(msg_task_t task, const char *category)
+\li \c MSG_task_get_category(msg_task_t task)
\li \c SD_task_set_category(SD_task_t task, const char *category)
\li \c SD_task_get_category(SD_task_t task)
TRACE_category_with_color ("computation", "0.3 1 0.4");
TRACE_category ("finalize");
- m_task_t req1 = MSG_task_create("1st_request_task", 10, 10, NULL);
- m_task_t req2 = MSG_task_create("2nd_request_task", 10, 10, NULL);
- m_task_t req3 = MSG_task_create("3rd_request_task", 10, 10, NULL);
- m_task_t req4 = MSG_task_create("4th_request_task", 10, 10, NULL);
+ msg_task_t req1 = MSG_task_create("1st_request_task", 10, 10, NULL);
+ msg_task_t req2 = MSG_task_create("2nd_request_task", 10, 10, NULL);
+ msg_task_t req3 = MSG_task_create("3rd_request_task", 10, 10, NULL);
+ msg_task_t req4 = MSG_task_create("4th_request_task", 10, 10, NULL);
MSG_task_set_category (req1, "request");
MSG_task_set_category (req2, "request");
MSG_task_set_category (req3, "request");
MSG_task_set_category (req4, "request");
- m_task_t comp = MSG_task_create ("comp_task", 100, 100, NULL);
+ msg_task_t comp = MSG_task_create ("comp_task", 100, 100, NULL);
MSG_task_set_category (comp, "computation");
- m_task_t finalize = MSG_task_create ("finalize", 0, 0, NULL);
+ msg_task_t finalize = MSG_task_create ("finalize", 0, 0, NULL);
MSG_task_set_category (finalize, "finalize");
//(...)
* \ingroup simix_process_management
* \brief Set the user data of a #smx_process_t.
*
- * This functions checks whether \a process is a valid pointer or not and set the user data associated to \a process if it is possible.
+ * This functions sets the user data associated to \a process.
* \param process SIMIX process
* \param data User data
*/
* \ingroup simix_process_management
* \brief Return the location on which an agent is running.
*
- * This functions checks whether \a process is a valid pointer or not and return the m_host_t corresponding to the location on which \a process is running.
+ * This functions returns the smx_host_t corresponding to the location on which
+ * \a process is running.
* \param process SIMIX process
* \return SIMIX host
*/