1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(C) 2020 Marvell International Ltd.
5 #include <rte_spinlock.h>
7 #include "graph_private.h"
9 static rte_spinlock_t graph_lock = RTE_SPINLOCK_INITIALIZER;
10 int rte_graph_logtype;
13 graph_spinlock_lock(void)
15 rte_spinlock_lock(&graph_lock);
19 graph_spinlock_unlock(void)
21 rte_spinlock_unlock(&graph_lock);