Implement g_topology_try_lock().

No objection from:	phk
This commit is contained in:
Pawel Jakub Dawidek 2004-12-21 18:32:46 +00:00
parent 18cd97621d
commit 54bab03f04

View File

@ -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); \