:Alfred Perlstein wrote:
:> * Kenneth D. Merry <[EMAIL PROTECTED]> [020517 23:31] wrote:
:> > The problem here is that the mutex needs to be initialized before I can
:> > acquire it, and there's going to be a race between checking to see
:> > whether it has been initialized and actually initializing it.
:> >
:> ...
:> > Suggestions?
:> 
:> *slaps forhead*
:> 
:> Probably a SYSINIT?

mutex(9) and sx(9) describe two macros for this purpose.

--
Andrew R. Reiter
[EMAIL PROTECTED]
[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to