瀏覽代碼

rename internal type struct starpu_priority_taskq_s to struct _starpu_priority_taskq

Nathalie Furmento 13 年之前
父節點
當前提交
86cf100882
共有 2 個文件被更改,包括 8 次插入7 次删除
  1. 6 6
      src/sched_policies/eager_central_priority_policy.c
  2. 2 1
      tools/dev/internal/rename_internal.sed

+ 6 - 6
src/sched_policies/eager_central_priority_policy.c

@@ -31,7 +31,7 @@
 
 #define NPRIO_LEVELS	(MAX_LEVEL - MIN_LEVEL + 1)
 
-struct starpu_priority_taskq_s
+struct _starpu_priority_taskq
 {
 	/* the actual lists
 	 *	taskq[p] is for priority [p - STARPU_MIN_PRIO] */
@@ -42,7 +42,7 @@ struct starpu_priority_taskq_s
 };
 
 /* the former is the actual queue, the latter some container */
-static struct starpu_priority_taskq_s *taskq;
+static struct _starpu_priority_taskq *taskq;
 
 /* keep track of the total number of tasks to be scheduled to avoid infinite
  * polling when there are really few tasks in the overall queue */
@@ -53,11 +53,11 @@ static pthread_mutex_t global_sched_mutex;
  * Centralized queue with priorities
  */
 
-static struct starpu_priority_taskq_s *_starpu_create_priority_taskq(void)
+static struct _starpu_priority_taskq *_starpu_create_priority_taskq(void)
 {
-	struct starpu_priority_taskq_s *central_queue;
+	struct _starpu_priority_taskq *central_queue;
 
-	central_queue = (struct starpu_priority_taskq_s *) malloc(sizeof(struct starpu_priority_taskq_s));
+	central_queue = (struct _starpu_priority_taskq *) malloc(sizeof(struct _starpu_priority_taskq));
 	central_queue->total_ntasks = 0;
 
 	unsigned prio;
@@ -70,7 +70,7 @@ static struct starpu_priority_taskq_s *_starpu_create_priority_taskq(void)
 	return central_queue;
 }
 
-static void _starpu_destroy_priority_taskq(struct starpu_priority_taskq_s *priority_queue)
+static void _starpu_destroy_priority_taskq(struct _starpu_priority_taskq *priority_queue)
 {
 	free(priority_queue);
 }

+ 2 - 1
tools/dev/internal/rename_internal.sed

@@ -1,7 +1,7 @@
 # StarPU --- Runtime system for heterogeneous multicore architectures.
 #
 # Copyright (C) 2010  Université de Bordeaux 1
-# Copyright (C) 2010, 2011  Centre National de la Recherche Scientifique
+# Copyright (C) 2010, 2011, 2012  Centre National de la Recherche Scientifique
 #
 # StarPU is free software; you can redistribute it and/or modify
 # it under the terms of the GNU Lesser General Public License as published by
@@ -14,6 +14,7 @@
 #
 # See the GNU Lesser General Public License in COPYING.LGPL for more details.
 
+s/\bstruct starpu_priority_taskq_s\b/struct _starpu_priority_taskq/g
 s/\bSTARPU_FUT_APPS_KEY\b/_STARPU_FUT_APPS_KEY/g
 s/\bSTARPU_FUT_CPU_KEY\b/_STARPU_FUT_CPU_KEY/g
 s/\bSTARPU_FUT_CUDA_KEY\b/_STARPU_FUT_CUDA_KEY/g