mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 16:00:08 +01:00
util: Should not use ASSERTED in util_thread_get_time_nano
The parameter is not ASSERTED
Fixes: 0f1b3fc17f ("util: Fixes unused parameter warnings")
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15655>
This commit is contained in:
parent
4525d7ed85
commit
c91e3c6a42
1 changed files with 2 additions and 1 deletions
|
|
@ -236,7 +236,7 @@ util_set_current_thread_affinity(const uint32_t *mask,
|
||||||
|
|
||||||
/* Return the time of a thread's CPU time clock. */
|
/* Return the time of a thread's CPU time clock. */
|
||||||
static inline int64_t
|
static inline int64_t
|
||||||
util_thread_get_time_nano(ASSERTED thrd_t thread)
|
util_thread_get_time_nano(thrd_t thread)
|
||||||
{
|
{
|
||||||
#if defined(HAVE_PTHREAD) && !defined(__APPLE__) && !defined(__HAIKU__)
|
#if defined(HAVE_PTHREAD) && !defined(__APPLE__) && !defined(__HAIKU__)
|
||||||
struct timespec ts;
|
struct timespec ts;
|
||||||
|
|
@ -246,6 +246,7 @@ util_thread_get_time_nano(ASSERTED thrd_t thread)
|
||||||
clock_gettime(cid, &ts);
|
clock_gettime(cid, &ts);
|
||||||
return (int64_t)ts.tv_sec * 1000000000 + ts.tv_nsec;
|
return (int64_t)ts.tv_sec * 1000000000 + ts.tv_nsec;
|
||||||
#else
|
#else
|
||||||
|
(void)thread;
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue