fix compile in perf mode
This commit is contained in:
parent
f218dfc62c
commit
1581cac17a
14
deps/oblib/src/lib/thread/ob_tenant_hook.cpp
vendored
14
deps/oblib/src/lib/thread/ob_tenant_hook.cpp
vendored
@ -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_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user