Lines Matching refs:ts
125 static void DurationToTimeSpec(timespec& ts, const std::chrono::milliseconds d) { in DurationToTimeSpec() argument
128 ts.tv_sec = std::min<std::chrono::seconds::rep>(s.count(), std::numeric_limits<time_t>::max()); in DurationToTimeSpec()
129 ts.tv_nsec = ns.count(); in DurationToTimeSpec()
135 static void UpdateTimeSpec(timespec& ts, std::chrono::milliseconds relative_timeout, in UpdateTimeSpec() argument
140 ts = { 0, 0 }; in UpdateTimeSpec()
143 DurationToTimeSpec(ts, remaining_timeout); in UpdateTimeSpec()
160 timespec ts; in WaitForPropertyCreation() local
161 UpdateTimeSpec(ts, relative_timeout, start_time); in WaitForPropertyCreation()
162 if (!__system_property_wait(nullptr, global_serial, &global_serial, &ts)) return nullptr; in WaitForPropertyCreation()
177 timespec ts; in WaitForProperty() local
183 UpdateTimeSpec(ts, relative_timeout, start_time); in WaitForProperty()
185 if (!__system_property_wait(pi, data.last_read_serial, &unused, &ts)) return false; in WaitForProperty()