* Bernd Walter <[EMAIL PROTECTED]> [010208 09:21] wrote:
> Are atomic_* implementations allowed to spin/sleep?
> The question is because some platforms don't have atomic operations
> for adding and so on (e.g. sparcv8).

Actually, you can use atomic_* on sparc, but you're limited to
24 bits.

> The only way to implement them on these platforms is to use a lock.
> Now I'm wonder if the use of a sleep mutex is allowed or is a simple
> spinning lock the sensefull choice.

Either one would work.

"I have the heart of a child; I keep it in a jar on my desk."

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

Reply via email to