| 218 | } |
| 219 | |
| 220 | static inline int |
| 221 | ink_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 | |
| 237 | static inline void |
| 238 | ink_cond_signal(ink_cond *cp) |
no outgoing calls
no test coverage detected