On Fri, 21 Mar 2003, Matthew N. Dodd wrote: > On Wed, 19 Mar 2003, Nate Lawson wrote: > > Patches are at: > > http://www.root.org/~nate/freebsd/if_pci/ > > I'd like to see calls to mtx_destroy() protected by a test for > mtx_initialized(). > > In most cases this isn't strictly necessary but its not bad practice.
Perhaps I should add a comment mentioning my assumption: mtx_init is one of the first things called and since detach unconditionally locks the mtx, it should never be called unless the mutex is initialized. -Nate To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message