Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Dec 2005 11:04:05 -0800
From:      Julian Elischer <julian@elischer.org>
To:        Luigi Rizzo <rizzo@icir.org>
Cc:        current@freebsd.org
Subject:   Re: td->td_critnest manipulations do not use atomic_add_int ?
Message-ID:  <43A855A5.6070809@elischer.org>
In-Reply-To: <20051220032538.A33093@xorpc.icir.org>
References:  <20051220032538.A33093@xorpc.icir.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Luigi Rizzo wrote:

>as in the subject... i see that td->td_critnest (used to determine
>whether a thread can be preempted or not) is manipulated using
>plain ++ or -- instruction instead of the atomic_add_int().
>
>I wonder if declaring it as volatile and possibly its
>usage patterns are enough to make the two things equivalent
>on all architectures.
>  
>

is td ever != curthread?

>cheers
>luigi
>_______________________________________________
>freebsd-current@freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-current
>To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
>  
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43A855A5.6070809>