graph: implement internal operation helpers
[dpdk.git] / lib / librte_graph / graph.c
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(C) 2020 Marvell International Ltd.
3  */
4
5 #include <rte_spinlock.h>
6
7 #include "graph_private.h"
8
9 static rte_spinlock_t graph_lock = RTE_SPINLOCK_INITIALIZER;
10 int rte_graph_logtype;
11
12 void
13 graph_spinlock_lock(void)
14 {
15         rte_spinlock_lock(&graph_lock);
16 }
17
18 void
19 graph_spinlock_unlock(void)
20 {
21         rte_spinlock_unlock(&graph_lock);
22 }