mbox

[v2,0/2] Add 'try' semantics for RD and WR locking

Message ID 1545242837-28585-1-git-send-email-konstantin.ananyev@intel.com (mailing list archive)
Headers

Message

Ananyev, Konstantin Dec. 19, 2018, 6:07 p.m. UTC
  Introduce rte_rwlock_read_trylock() and rte_rwlock_write_trylock()
and new UT test-case for it.

v1 -> v2
Changes per Honnappa and Gavin comments:
 - remove cycle in  rte_rwlock_write_trylock()
 - remove static inline functions from .map file
 - update comments

Konstantin Ananyev (2):
  rwlock: introduce 'try' semantics for RD and WR locking
  test: add new test-cases for rwlock autotest

 .../common/include/generic/rte_rwlock.h       |  56 +++
 test/test/test_rwlock.c                       | 409 +++++++++++++++++-
 2 files changed, 446 insertions(+), 19 deletions(-)