Browse Source

drop unused list type

Samuel Thibault 9 years ago
parent
commit
a45db47b0b
2 changed files with 5 additions and 5 deletions
  1. 2 2
      src/core/jobs.c
  2. 3 3
      src/core/jobs.h

+ 2 - 2
src/core/jobs.c

@@ -52,7 +52,7 @@ struct _starpu_job* STARPU_ATTRIBUTE_MALLOC _starpu_job_create(struct starpu_tas
 	struct _starpu_job *job;
         _STARPU_LOG_IN();
 
-	job = _starpu_job_new();
+	job = malloc(sizeof(*job));
 
 	/* As most of the fields must be initialized at NULL, let's put 0
 	 * everywhere */
@@ -128,7 +128,7 @@ void _starpu_job_destroy(struct _starpu_job *j)
 		j->dyn_dep_slots = NULL;
 	}
 
-	_starpu_job_delete(j);
+	free(j);
 }
 
 int _starpu_job_finished(struct _starpu_job *j)

+ 3 - 3
src/core/jobs.h

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2009-2015  Université de Bordeaux
+ * Copyright (C) 2009-2016  Université de Bordeaux
  * Copyright (C) 2010, 2011, 2013, 2014, 2015  CNRS
  * Copyright (C) 2011  Télécom-SudParis
  * Copyright (C) 2014  INRIA
@@ -64,7 +64,7 @@ struct _starpu_data_descr
 };
 
 /* A job is the internal representation of a task. */
-LIST_TYPE(_starpu_job,
+struct _starpu_job {
 
 	/* Each job is attributed a unique id. */
 	unsigned long job_id;
@@ -192,7 +192,7 @@ LIST_TYPE(_starpu_job,
 	struct _starpu_job *prev_all;
 	struct _starpu_job *next_all;
 #endif
-)
+};
 
 /* Create an internal struct _starpu_job *structure to encapsulate the task. */
 struct _starpu_job* STARPU_ATTRIBUTE_MALLOC _starpu_job_create(struct starpu_task *task);