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

Function ink_rwlock_tryrdlock

include/tscore/ink_rwlock.h:59–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59inline bool
60ink_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
72inline void
73ink_rwlock_wrlock(ink_rwlock *rw)

Callers

nothing calls this directly

Calls 1

ink_abortFunction · 0.50

Tested by

no test coverage detected