On Wed, 07 Oct 2009 15:45:23 -0700
Michael Hunter <Michael.Hunter at Sun.COM> wrote:
>
> meem-104 nwamd/dlpi_events.c'123: Can this happen? If so, what prevents
> a situation where two thread simultaneously pass this check and race to both
> call pthread_create()?
>
>
> ACCEPT
Actually REJECT. Yes, it can happen. But we thread calls of this
function through owning the lock on the object so it can't race. I've
added a comment that it is assumed that the caller owns the lock on the
object to the block comment at the top of the function.
Michael