* @return
* 1 if the lock is successfully taken; 0 otherwise.
*/
+__rte_warn_unused_result
static inline int
rte_spinlock_trylock (rte_spinlock_t *sl);
* 1 if the hardware memory transaction is successfully started
* or lock is successfully taken; 0 otherwise.
*/
+__rte_warn_unused_result
static inline int
rte_spinlock_trylock_tm(rte_spinlock_t *sl);
* @return
* 1 if the lock is successfully taken; 0 otherwise.
*/
+__rte_warn_unused_result
static inline int rte_spinlock_recursive_trylock(rte_spinlock_recursive_t *slr)
{
int id = rte_gettid();
* 1 if the hardware memory transaction is successfully started
* or lock is successfully taken; 0 otherwise.
*/
+__rte_warn_unused_result
static inline int rte_spinlock_recursive_trylock_tm(
rte_spinlock_recursive_t *slr);