Mesa (master): gallium/util: make use of new u_thread.h in u_queue.{c, h}
Timothy Arceri
tarceri at kemper.freedesktop.org
Sun Mar 12 06:51:37 UTC 2017
Module: Mesa
Branch: master
Commit: 04ec4db8b5424872ebefed677cbd01fa3b40145d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=04ec4db8b5424872ebefed677cbd01fa3b40145d
Author: Timothy Arceri <tarceri at itsqueeze.com>
Date: Wed Mar 8 15:20:33 2017 +1100
gallium/util: make use of new u_thread.h in u_queue.{c,h}
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
---
src/gallium/auxiliary/util/u_queue.c | 6 +++---
src/gallium/auxiliary/util/u_queue.h | 4 +++-
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/gallium/auxiliary/util/u_queue.c b/src/gallium/auxiliary/util/u_queue.c
index e0ec290..0519667 100644
--- a/src/gallium/auxiliary/util/u_queue.c
+++ b/src/gallium/auxiliary/util/u_queue.c
@@ -144,7 +144,7 @@ util_queue_thread_func(void *input)
if (queue->name) {
char name[16];
util_snprintf(name, sizeof(name), "%s:%i", queue->name, thread_index);
- pipe_thread_setname(name);
+ u_thread_setname(name);
}
while (1) {
@@ -226,7 +226,7 @@ util_queue_init(struct util_queue *queue,
input->queue = queue;
input->thread_index = i;
- queue->threads[i] = pipe_thread_create(util_queue_thread_func, input);
+ queue->threads[i] = u_thread_create(util_queue_thread_func, input);
if (!queue->threads[i]) {
free(input);
@@ -327,5 +327,5 @@ util_queue_get_thread_time_nano(struct util_queue *queue, unsigned thread_index)
if (thread_index >= queue->num_threads)
return 0;
- return pipe_thread_get_time_nano(queue->threads[thread_index]);
+ return u_thread_get_time_nano(queue->threads[thread_index]);
}
diff --git a/src/gallium/auxiliary/util/u_queue.h b/src/gallium/auxiliary/util/u_queue.h
index d62d87d..0073890 100644
--- a/src/gallium/auxiliary/util/u_queue.h
+++ b/src/gallium/auxiliary/util/u_queue.h
@@ -33,8 +33,10 @@
#ifndef U_QUEUE_H
#define U_QUEUE_H
-#include "os/os_thread.h"
+#include <string.h>
+
#include "util/list.h"
+#include "util/u_thread.h"
/* Job completion fence.
* Put this into your job structure.
More information about the mesa-commit
mailing list