fix compile in perf mode

This commit is contained in:
nroskill 2023-03-06 04:11:20 +00:00 committed by ob-robot
parent f218dfc62c
commit 1581cac17a

View File

@ -141,5 +141,19 @@ int futex_hook(uint32_t *uaddr, int futex_op, uint32_t val, const struct timespe
} /* extern "C" */
#else
int ob_pthread_cond_wait(pthread_cond_t *__restrict __cond,
pthread_mutex_t *__restrict __mutex)
{
return pthread_cond_wait(__cond, __mutex);
}
int ob_pthread_cond_timedwait(pthread_cond_t *__restrict __cond,
pthread_mutex_t *__restrict __mutex,
const struct timespec *__restrict __abstime)
{
return pthread_cond_timedwait(__cond, __mutex, __abstime);
}
#endif /* PERF_MODE */
#endif /* _OCEABASE_TENANT_PRELOAD_H_ */