projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Revert "gallium/os_thread: simplify helper pipe_current_thread_get_time_nano"
[mesa.git]
/
src
/
gallium
/
auxiliary
/
os
/
os_thread.h
diff --git
a/src/gallium/auxiliary/os/os_thread.h
b/src/gallium/auxiliary/os/os_thread.h
index 322888b825f0b3f175daaffc3cbaf2beae27f1e9..f2629c5ffe592a44e45995566d437c06417203c5 100644
(file)
--- a/
src/gallium/auxiliary/os/os_thread.h
+++ b/
src/gallium/auxiliary/os/os_thread.h
@@
-165,7
+165,11
@@
pipe_tsd_set(pipe_tsd *tsd, void *value)
static inline int64_t
pipe_current_thread_get_time_nano(void)
{
- return u_thread_get_time_nano(thrd_current());
+#if defined(HAVE_PTHREAD)
+ return u_thread_get_time_nano(pthread_self());
+#else
+ return 0;
+#endif
}
#endif /* OS_THREAD_H_ */