Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
rename host callbacks
[simgrid.git] / src / bindings / java / org / simgrid / surf / CpuAction.java
index be740ec..5094087 100644 (file)
@@ -1,6 +1,6 @@
 /* ----------------------------------------------------------------------------
  * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.11
+ * Version 2.0.12
  *
  * Do not make changes to this file unless you know what you are doing--modify
  * the SWIG interface file instead.
@@ -56,8 +56,8 @@ public class CpuAction extends Action {
   }
 
   public Cpu getCpu() {
-  long cPtr = SurfJNI.CpuAction_getCpu(swigCPtr, this);
-  return (Cpu)Surf.getCpuDirector(cPtr);
-}
+    long cPtr = SurfJNI.CpuAction_getCpu(swigCPtr, this);
+    return (cPtr == 0) ? null : new Cpu(cPtr, false);
+  }
 
 }