gallium/os_thread: simplify helper pipe_current_thread_get_time_nano

Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
Marek Olšák 2018-09-05 23:00:07 -04:00
parent 15fa2c5e35
commit 6d477bc546
1 changed files with 1 additions and 5 deletions

View File

@ -165,11 +165,7 @@ pipe_tsd_set(pipe_tsd *tsd, void *value)
static inline int64_t
pipe_current_thread_get_time_nano(void)
{
#if defined(HAVE_PTHREAD)
return u_thread_get_time_nano(pthread_self());
#else
return 0;
#endif
return u_thread_get_time_nano(thrd_current());
}
#endif /* OS_THREAD_H_ */