Browse Source

Prefixing of src/core/errorcheck.h

find . -type f -not -name "*svn*"|xargs sed -i s/"\bworker_status\b"/starpu_worker_status/g
Nathalie Furmento 15 years ago
parent
commit
5d802592b0
3 changed files with 7 additions and 7 deletions
  1. 3 3
      src/core/errorcheck.c
  2. 3 3
      src/core/errorcheck.h
  3. 1 1
      src/core/workers.h

+ 3 - 3
src/core/errorcheck.c

@@ -17,7 +17,7 @@
 #include <core/errorcheck.h>
 #include <core/errorcheck.h>
 #include <core/workers.h>
 #include <core/workers.h>
 
 
-void _starpu_set_local_worker_status(worker_status st)
+void _starpu_set_local_worker_status(starpu_worker_status st)
 {
 {
 	struct worker_s *worker = _starpu_get_local_worker_key();
 	struct worker_s *worker = _starpu_get_local_worker_key();
 
 
@@ -28,7 +28,7 @@ void _starpu_set_local_worker_status(worker_status st)
 		worker->status = st;
 		worker->status = st;
 }
 }
 
 
-worker_status _starpu_get_local_worker_status(void)
+starpu_worker_status _starpu_get_local_worker_status(void)
 {
 {
 	struct worker_s *worker = _starpu_get_local_worker_key();
 	struct worker_s *worker = _starpu_get_local_worker_key();
 	if (STARPU_UNLIKELY(!worker))
 	if (STARPU_UNLIKELY(!worker))
@@ -41,7 +41,7 @@ worker_status _starpu_get_local_worker_status(void)
  * execution of a task. */
  * execution of a task. */
 unsigned _starpu_worker_may_perform_blocking_calls(void)
 unsigned _starpu_worker_may_perform_blocking_calls(void)
 {
 {
-	worker_status st = _starpu_get_local_worker_status();
+	starpu_worker_status st = _starpu_get_local_worker_status();
 
 
 	return ( !(st == STATUS_CALLBACK) && !(st == STATUS_EXECUTING));
 	return ( !(st == STATUS_CALLBACK) && !(st == STATUS_EXECUTING));
 }
 }

+ 3 - 3
src/core/errorcheck.h

@@ -31,10 +31,10 @@ typedef enum {
 	STATUS_EXECUTING,
 	STATUS_EXECUTING,
 	/* during the execution of the callback */
 	/* during the execution of the callback */
 	STATUS_CALLBACK
 	STATUS_CALLBACK
-} worker_status;
+} starpu_worker_status;
 
 
-void _starpu_set_local_worker_status(worker_status st);
-worker_status _starpu_get_local_worker_status(void);
+void _starpu_set_local_worker_status(starpu_worker_status st);
+starpu_worker_status _starpu_get_local_worker_status(void);
 
 
 unsigned _starpu_worker_may_perform_blocking_calls(void);
 unsigned _starpu_worker_may_perform_blocking_calls(void);
 
 

+ 1 - 1
src/core/workers.h

@@ -79,7 +79,7 @@ struct worker_s {
 	struct starpu_job_list_s *terminated_jobs; /* list of pending jobs which were executed */
 	struct starpu_job_list_s *terminated_jobs; /* list of pending jobs which were executed */
 	unsigned worker_is_running;
 	unsigned worker_is_running;
 	unsigned worker_is_initialized;
 	unsigned worker_is_initialized;
-	worker_status status; /* what is the worker doing now ? (eg. CALLBACK) */
+	starpu_worker_status status; /* what is the worker doing now ? (eg. CALLBACK) */
 	char name[32];
 	char name[32];
 };
 };