Explorar el Código

src/core/topology.c: set userdata to NULL to make sure it is going to be properly initialised in case we call starpu_init() again in the same application

Nathalie Furmento hace 11 años
padre
commit
dfd8911aa3
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/core/topology.c

+ 1 - 0
src/core/topology.c

@@ -1395,6 +1395,7 @@ _starpu_destroy_topology (
 		if (worker_obj->userdata)
 		{
 			_starpu_worker_list_delete(worker_obj->userdata);
+			worker_obj->userdata = NULL;
 		}
 #endif
 	}