diff options
| author | Meco Man <[email protected]> | 2021-07-22 00:35:08 +0800 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2021-07-22 01:08:30 +0800 |
| commit | 62ff77d4932bb81f5acaf8092cbb97e68de2a9ba (patch) | |
| tree | 8f02158688719040a66a7f0b7875626a42b55611 /components/libc/pthreads/pthread_cond.c | |
| parent | 0f48449b5e326f4f66e443cbd1a0393ea00433e4 (diff) | |
[libc][time] 重命名非标准libc函数 并 调整time.h定义位置
Diffstat (limited to 'components/libc/pthreads/pthread_cond.c')
| -rw-r--r-- | components/libc/pthreads/pthread_cond.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/libc/pthreads/pthread_cond.c b/components/libc/pthreads/pthread_cond.c index 59c271bf6e..9bf49704ed 100644 --- a/components/libc/pthreads/pthread_cond.c +++ b/components/libc/pthreads/pthread_cond.c @@ -222,7 +222,7 @@ int pthread_cond_timedwait(pthread_cond_t *cond, int timeout; rt_err_t result; - timeout = clock_time_to_tick(abstime); + timeout = rt_timespec_to_tick(abstime); result = _pthread_cond_timedwait(cond, mutex, timeout); if (result == RT_EOK) return 0; |
