Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Check return value of MSG_task_isend_internal (codacy).
[simgrid.git] / src / msg / msg_legacy.cpp
index 0f4e828..7f65062 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2004-2017. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2004-2018. 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. */
@@ -7,8 +7,6 @@
 
 #define MSG_CALL(type, oldname, args)
 
-extern "C" {
-
 /* ************************** Actors *************************** */
 int MSG_process_get_PID(sg_actor_t actor)
 {
@@ -58,6 +56,19 @@ void MSG_process_migrate(sg_actor_t actor, sg_host_t host)
 {
   sg_actor_migrate(actor, host);
 }
+void MSG_process_join(sg_actor_t actor, double timeout)
+{
+  sg_actor_join(actor, timeout);
+}
+void MSG_process_kill(sg_actor_t actor)
+{
+  sg_actor_kill(actor);
+}
+
+void MSG_process_set_kill_time(sg_actor_t actor, double kill_time)
+{
+  sg_actor_set_kill_time(actor, kill_time);
+}
 
 /* ************************** NetZones *************************** */
 sg_netzone_t MSG_zone_get_root()
@@ -293,4 +304,3 @@ void MSG_vm_destroy(sg_vm_t vm)
 {
   sg_vm_destroy(vm);
 }
-}