1570af302Sopenharmony_ci#include "time32.h" 2570af302Sopenharmony_ci#include <time.h> 3570af302Sopenharmony_ci#include <threads.h> 4570af302Sopenharmony_ci 5570af302Sopenharmony_ciint __mtx_timedlock_time32(mtx_t *restrict m, const struct timespec32 *restrict ts32) 6570af302Sopenharmony_ci{ 7570af302Sopenharmony_ci return mtx_timedlock(m, !ts32 ? 0 : (&(struct timespec){ 8570af302Sopenharmony_ci .tv_sec = ts32->tv_sec, .tv_nsec = ts32->tv_nsec})); 9570af302Sopenharmony_ci} 10