A minor issue with lock names, WITNESS complains
when the two locks are the same...
This commit is contained in:
parent
cb2482de6b
commit
fd4ae6dcff
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=174029
@ -425,9 +425,9 @@ typedef struct _DESCRIPTOR_PAIR
|
|||||||
} DESC_ARRAY, *PDESC_ARRAY;
|
} DESC_ARRAY, *PDESC_ARRAY;
|
||||||
|
|
||||||
#define EM_CORE_LOCK_INIT(_sc, _name) \
|
#define EM_CORE_LOCK_INIT(_sc, _name) \
|
||||||
mtx_init(&(_sc)->core_mtx, _name, MTX_NETWORK_LOCK, MTX_DEF)
|
mtx_init(&(_sc)->core_mtx, _name, "EM Core Lock", MTX_DEF)
|
||||||
#define EM_TX_LOCK_INIT(_sc, _name) \
|
#define EM_TX_LOCK_INIT(_sc, _name) \
|
||||||
mtx_init(&(_sc)->tx_mtx, _name, MTX_NETWORK_LOCK, MTX_DEF)
|
mtx_init(&(_sc)->tx_mtx, _name, "EM TX Lock", MTX_DEF)
|
||||||
#define EM_CORE_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->core_mtx)
|
#define EM_CORE_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->core_mtx)
|
||||||
#define EM_TX_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->tx_mtx)
|
#define EM_TX_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->tx_mtx)
|
||||||
#define EM_CORE_LOCK(_sc) mtx_lock(&(_sc)->core_mtx)
|
#define EM_CORE_LOCK(_sc) mtx_lock(&(_sc)->core_mtx)
|
||||||
|
Loading…
Reference in New Issue
Block a user