Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix issues for destroy callbacks
[simgrid.git] / src / bindings / java / surf_swig.cpp
index b0378b7..b5a376f 100644 (file)
@@ -1,11 +1,17 @@
 #include <boost/lambda/bind.hpp>
 #include "src/surf/surf_interface.hpp"
 #include "surf_swig.hpp"
+#include "src/simix/smx_private.h"
+
 
 double getClock() {
   return surf_get_clock();
 }
 
+void clean() {
+  SIMIX_clean();
+}
+
 void Plugin::activateCpuCreatedCallback(){
   surf_callback_connect(cpuCreatedCallbacks, boost::bind(&Plugin::cpuCreatedCallback, this, _1));
 }