Revert "gallium/os_thread: simplify helper pipe_current_thread_get_time_nano"

This reverts commit 6d477bc546.

It fixes the Windows build hopefully.
This commit is contained in:
Marek Olšák 2018-09-07 16:42:00 -04:00
parent 465e5a868c
commit 7ac52c2e38
1 changed files with 5 additions and 1 deletions

View File

@ -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_ */