} e_smx_state_t;
/** @} */
-/* ****************************** Process *********************************** */
-
-typedef enum {
- SMX_EXIT_SUCCESS = 0,
- SMX_EXIT_FAILURE = 1
-} smx_process_exit_status_t;
-/** @} */
-
/******************************* Networking ***********************************/
extern unsigned smx_context_stack_size;
extern unsigned smx_context_guard_size;
*/
void MSG_process_on_exit(int_f_int_pvoid_t fun, void* data)
{
- simgrid::s4u::this_actor::on_exit(
- [fun, data](bool failed) { fun(failed ? SMX_EXIT_FAILURE : SMX_EXIT_SUCCESS, data); });
+ simgrid::s4u::this_actor::on_exit([fun, data](bool failed) { fun(failed ? 1 /*FAILURE*/ : 0 /*SUCCESS*/, data); });
}