graph: implement node registration
[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
11 void
12 graph_spinlock_lock(void)
13 {
14         rte_spinlock_lock(&graph_lock);
15 }
16
17 void
18 graph_spinlock_unlock(void)
19 {
20         rte_spinlock_unlock(&graph_lock);
21 }