36 #ifndef _ENV_SPINLOCK_H_
37 #define _ENV_SPINLOCK_H_
39 #pragma GCC visibility push(default)
41 typedef odp_spinlock_t env_spinlock_t;
44 env_spinlock_init(env_spinlock_t *
const lock)
46 odp_spinlock_init(lock);
50 env_spinlock_lock(env_spinlock_t *
const lock)
52 odp_spinlock_lock(lock);
56 env_spinlock_trylock(env_spinlock_t *
const lock)
58 return odp_spinlock_trylock(lock);
62 env_spinlock_is_locked(env_spinlock_t *
const lock)
64 return odp_spinlock_is_locked(lock);
68 env_spinlock_unlock(env_spinlock_t *
const lock)
70 odp_spinlock_unlock(lock);
73 #pragma GCC visibility pop