Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Biggest commit ever (SIMIX2): the user processes can now run in parallel
[simgrid.git] / src / smpi / smpi_util.c
index 1e2fb2c..16b7117 100644 (file)
@@ -1,3 +1,9 @@
+/* Copyright (c) 2007, 2009, 2010. The SimGrid Team.
+ * All rights reserved.                                                     */
+
+/* This program is free software; you can redistribute it and/or modify it
+  * under the terms of the license (GNU LGPL) which comes with this package. */
+
 #include "private.h"
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_util, smpi,
@@ -28,9 +34,9 @@ unsigned int smpi_sleep(unsigned int seconds)
 
   smpi_bench_end();
   host = SIMIX_host_self();
-  action = SIMIX_action_sleep(host, (double)seconds);
+  action = SIMIX_req_action_sleep(host, (double)seconds);
   smpi_process_wait_action(action);
-  SIMIX_action_destroy(action);
+  SIMIX_req_action_destroy(action);
   smpi_bench_begin();
   return 0;
 }
@@ -39,7 +45,7 @@ void smpi_exit(int status)
 {
   smpi_bench_end();
   smpi_process_finalize();
-  SIMIX_process_kill(SIMIX_process_self());
+  SIMIX_req_process_kill(SIMIX_process_self());
   return;
 }
 */