| 57 | } |
| 58 | |
| 59 | inline bool |
| 60 | ink_rwlock_tryrdlock(ink_rwlock *rw) |
| 61 | { |
| 62 | int error = pthread_rwlock_tryrdlock(rw); |
| 63 | if (EBUSY == error) { |
| 64 | return false; |
| 65 | } |
| 66 | if (unlikely(error != 0)) { |
| 67 | ink_abort("pthread_rwlock_tryrdlock(%p) failed: %s (%d)", static_cast<void *>(rw), strerror(error), error); |
| 68 | } |
| 69 | return true; |
| 70 | } |
| 71 | |
| 72 | inline void |
| 73 | ink_rwlock_wrlock(ink_rwlock *rw) |
nothing calls this directly
no test coverage detected