rwlock: introduce try semantics
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Wed, 19 Dec 2018 18:07:16 +0000 (18:07 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 19 Dec 2018 19:56:11 +0000 (20:56 +0100)
commitd5b46fc363963f32b53b26e856797c49943d2d4c
tree73c20306c5fcb133a9b0d8583736024fe8369bae
parent7079e29f7f28661b712620f46e6a8514eb0a708a
rwlock: introduce try semantics

Introduce rte_rwlock_read_trylock() and rte_rwlock_write_trylock().

Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Reviewed-by: Gavin Hu <gavin.hu@arm.com>
lib/librte_eal/common/include/generic/rte_rwlock.h