20 u32 *new_counter = 0, *old_counter;
36 for (thread_index = 0; thread_index < tm->
n_vlib_mains; thread_index++) {
#define vec_validate(V, I)
Make sure vector is long enough for given index (no header, unspecified alignment) ...
static_always_inline void vlib_refcount_unlock(clib_spinlock_t counter_lock)
u64 vlib_refcount_get(vlib_refcount_t *r, u32 index)
#define vec_free(V)
Free vector's memory (no header).
static_always_inline void vlib_refcount_lock(clib_spinlock_t counter_lock)
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
static vlib_thread_main_t * vlib_get_thread_main()
clib_spinlock_t counter_lock
#define CLIB_MEMORY_BARRIER()
vlib_refcount_per_cpu_t * per_cpu