MCPcopy Create free account
hub / github.com/apache/trafficserver / ink_cond_timedwait

Function ink_cond_timedwait

include/tscore/ink_thread.h:220–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220static inline int
221ink_cond_timedwait(ink_cond *cp, ink_mutex *mp, ink_timestruc *t)
222{
223 int err;
224 while (EINTR == (err = pthread_cond_timedwait(cp, mp, t))) {
225 ;
226 }
227#ifndef ETIME
228// ink_defs.h aliases ETIME to ETIMEDOUT and this path should never happen
229#warning Unknown ETIME return condition for pthread_cond_timedwait
230 ink_assert((err == 0) || (err == ETIMEDOUT));
231#else
232 ink_assert((err == 0) || (err == ETIME) || (err == ETIMEDOUT));
233#endif
234 return err;
235}
236
237static inline void
238ink_cond_signal(ink_cond *cp)

Callers 3

waitMethod · 0.85
aio_thread_mainMethod · 0.85
timedwaitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected