Add a macro for the destruction of INP_INFO_LOCK's used by loadable modules.

This commit is contained in:
andre 2004-10-19 14:34:13 +00:00
parent dcb4801af4
commit 23afa2eef1

View File

@ -250,6 +250,7 @@ struct inpcbinfo { /* XXX documentation, prefixes */
#define INP_INFO_LOCK_INIT(ipi, d) \
mtx_init(&(ipi)->ipi_mtx, (d), NULL, MTX_DEF | MTX_RECURSE)
#define INP_INFO_LOCK_DESTROY(ipi) mtx_destroy(&(ipi)->ipi_mtx)
#define INP_INFO_RLOCK(ipi) mtx_lock(&(ipi)->ipi_mtx)
#define INP_INFO_WLOCK(ipi) mtx_lock(&(ipi)->ipi_mtx)
#define INP_INFO_RUNLOCK(ipi) mtx_unlock(&(ipi)->ipi_mtx)