X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_eal%2Fcommon%2Finclude%2Fgeneric%2Frte_rwlock.h;h=da9bc3e9c0e2fd98d2a040f1daae91de14555b9d;hb=df3ff6be2b33faea3edf3c112b9bdc5b74d6f684;hp=31608fa2eaa19991062f38d4df5b29ad46f1669c;hpb=e8af2f1f11c8f35430086806988d43ff78414ba5;p=dpdk.git diff --git a/lib/librte_eal/common/include/generic/rte_rwlock.h b/lib/librte_eal/common/include/generic/rte_rwlock.h index 31608fa2ea..da9bc3e9c0 100644 --- a/lib/librte_eal/common/include/generic/rte_rwlock.h +++ b/lib/librte_eal/common/include/generic/rte_rwlock.h @@ -88,7 +88,8 @@ rte_rwlock_read_lock(rte_rwlock_t *rwl) * - -EBUSY if lock could not be acquired for reading because a * writer holds the lock */ -static inline __rte_experimental int +__rte_experimental +static inline int rte_rwlock_read_trylock(rte_rwlock_t *rwl) { int32_t x; @@ -131,7 +132,8 @@ rte_rwlock_read_unlock(rte_rwlock_t *rwl) * - -EBUSY if lock could not be acquired for writing because * it was already locked for reading or writing */ -static inline __rte_experimental int +__rte_experimental +static inline int rte_rwlock_write_trylock(rte_rwlock_t *rwl) { int32_t x;