Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
almost useless old stuff... remove
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Thu, 24 Oct 2019 11:28:34 +0000 (13:28 +0200)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Thu, 24 Oct 2019 11:28:34 +0000 (13:28 +0200)
include/simgrid/simix.h
src/msg/msg_process.cpp

index fa67056..6eca9b1 100644 (file)
@@ -46,14 +46,6 @@ typedef enum {
 } 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;
index d6db894..3eb4648 100644 (file)
@@ -174,6 +174,5 @@ int MSG_process_get_number()
  */
 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); });
 }