mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Implement g_topology_try_lock().
No objection from: phk
This commit is contained in:
parent
18cd97621d
commit
54bab03f04
1 changed files with 2 additions and 0 deletions
|
|
@ -310,6 +310,8 @@ extern struct sx topology_lock;
|
|||
sx_xlock(&topology_lock); \
|
||||
} while (0)
|
||||
|
||||
#define g_topology_try_lock() sx_try_xlock(&topology_lock)
|
||||
|
||||
#define g_topology_unlock() \
|
||||
do { \
|
||||
sx_xunlock(&topology_lock); \
|
||||
|
|
|
|||
Loading…
Reference in a new issue