Date: Thu, 8 Feb 2001 18:37:52 -0800 From: Alfred Perlstein <bright@wintelcom.net> To: Bernd Walter <ticso@cicely5.cicely.de> Cc: freebsd-current@FreeBSD.ORG Subject: Re: atomic_ question Message-ID: <20010208183752.F26076@fw.wintelcom.net> In-Reply-To: <20010208182106.B80741@cicely5.cicely.de>; from ticso@cicely5.cicely.de on Thu, Feb 08, 2001 at 06:21:07PM %2B0100 References: <20010208182106.B80741@cicely5.cicely.de>
next in thread | previous in thread | raw e-mail | index | archive | help
* Bernd Walter <ticso@cicely5.cicely.de> [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. -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010208183752.F26076>