mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 20:08:15 +08:00
net: use NXRMUTEX_INITIALIZER for rmutex init
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
443c4c46b0
commit
fd9792b4bd
@@ -56,13 +56,13 @@
|
|||||||
#ifdef CONFIG_ROUTE_IPv4_FILEROUTE
|
#ifdef CONFIG_ROUTE_IPv4_FILEROUTE
|
||||||
/* Used to lock a routing table for exclusive write-only access */
|
/* Used to lock a routing table for exclusive write-only access */
|
||||||
|
|
||||||
static rmutex_t g_ipv4_lock = RMUTEX_INITIALIZER;
|
static rmutex_t g_ipv4_lock = NXRMUTEX_INITIALIZER;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_ROUTE_IPv6_FILEROUTE
|
#ifdef CONFIG_ROUTE_IPv6_FILEROUTE
|
||||||
/* Used to lock a routing table for exclusive write-only access */
|
/* Used to lock a routing table for exclusive write-only access */
|
||||||
|
|
||||||
static rmutex_t g_ipv6_lock = RMUTEX_INITIALIZER;
|
static rmutex_t g_ipv6_lock = NXRMUTEX_INITIALIZER;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
|||||||
Reference in New Issue
Block a user