* @param tl
* A pointer to the ticketlock.
*/
-__rte_experimental
static inline void
rte_ticketlock_init(rte_ticketlock_t *tl)
{
* @param tl
* A pointer to the ticketlock.
*/
-__rte_experimental
static inline void
rte_ticketlock_lock(rte_ticketlock_t *tl)
{
* @param tl
* A pointer to the ticketlock.
*/
-__rte_experimental
static inline void
rte_ticketlock_unlock(rte_ticketlock_t *tl)
{
* @return
* 1 if the lock is successfully taken; 0 otherwise.
*/
-__rte_experimental
static inline int
rte_ticketlock_trylock(rte_ticketlock_t *tl)
{
* @return
* 1 if the lock is currently taken; 0 otherwise.
*/
-__rte_experimental
static inline int
rte_ticketlock_is_locked(rte_ticketlock_t *tl)
{
* @param tlr
* A pointer to the recursive ticketlock.
*/
-__rte_experimental
static inline void
rte_ticketlock_recursive_init(rte_ticketlock_recursive_t *tlr)
{
* @param tlr
* A pointer to the recursive ticketlock.
*/
-__rte_experimental
static inline void
rte_ticketlock_recursive_lock(rte_ticketlock_recursive_t *tlr)
{
* @param tlr
* A pointer to the recursive ticketlock.
*/
-__rte_experimental
static inline void
rte_ticketlock_recursive_unlock(rte_ticketlock_recursive_t *tlr)
{
* @return
* 1 if the lock is successfully taken; 0 otherwise.
*/
-__rte_experimental
static inline int
rte_ticketlock_recursive_trylock(rte_ticketlock_recursive_t *tlr)
{