Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Feb 2001 18:21:07 +0100
From:      Bernd Walter <ticso@cicely5.cicely.de>
To:        freebsd-current@freebsd.org
Subject:   atomic_ question
Message-ID:  <20010208182106.B80741@cicely5.cicely.de>

next in thread | raw e-mail | index | archive | help
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).
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.

One of the results is that there is no mutex/lock allocated specially
for this purpose and there is a need to allocate one globaly for all.

-- 
B.Walter              COSMO-Project         http://www.cosmo-project.de
ticso@cicely.de         Usergroup           info@cosmo-project.de



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?20010208182106.B80741>