Date: Thu, 7 Dec 2000 17:22:42 -0500 (EST) From: Daniel Eischen <eischen@vigrid.com> To: John Baldwin <jhb@FreeBSD.org> Cc: Dan Eischen <eischen@vigrid.com>, smp@FreeBSD.org Subject: RE: Userland atomic assignments Message-ID: <Pine.SUN.3.91.1001207172002.10405B-100000@pcnet1.pcnet.com> In-Reply-To: <XFMail.001207140943.jhb@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 7 Dec 2000, John Baldwin wrote: > atomic_cmpset() can't be used because it dinks with interrupts in the i386 > case. Also, you would need to #define SMP so that the lock prefixes would be > compiled in for the x86 case. You are probably better off just using userland > mutexes. Also, not that atomic_set() does an or operation, whereas > atomic_store() does an actual assignment. I don't need cmpset operations, just atomic int32 and ptr assignments. The latter would be good enough to let me walk a simple list without having to take a lock. -- Dan Eischen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SUN.3.91.1001207172002.10405B-100000>