src/dpdk/lib/librte_eal/include/generic/rte_mcslock.h
static inline int
rte_mcslock_is_locked(rte_mcslock_t *msl)
{
	return (__atomic_load_n(&msl, __ATOMIC_RELAXED) != NULL);
}
/**
 * Test if the lock is taken.
 *
 * @param msl
 *   A pointer to a MCS lock node.
 * @return
 *   1 if the lock is currently taken; 0 otherwise.
 */
Test if the lock is taken.
@param msl
A pointer to a MCS lock node.
@return
1 if the lock is currently taken; 0 otherwise.
Test if the lock is taken . @param msl A pointer to a MCS lock node . @return 1 if the lock is currently taken ; 0 otherwise .
static inline int
rte_mcslock_is_locked(rte_mcslock_t *msl)
{
	return (__atomic_load_n(&msl, __ATOMIC_RELAXED) != NULL);
}
static inline int rte_mcslock_is_locked ( rte_mcslock_t * msl ) { return ( __atomic_load_n ( & msl , __ATOMIC_RELAXED ) != NULL ) ; }
Test if the lock is taken.
Test if the lock is taken .