Module Name: src Committed By: dholland Date: Sun Feb 2 17:32:38 UTC 2014
Modified Files: src/lib/libc/atomic: atomic_cas.3 Log Message: Reorg second paragraph too, to group related info together. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/lib/libc/atomic/atomic_cas.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/atomic/atomic_cas.3 diff -u src/lib/libc/atomic/atomic_cas.3:1.3 src/lib/libc/atomic/atomic_cas.3:1.4 --- src/lib/libc/atomic/atomic_cas.3:1.3 Sun Feb 2 17:30:06 2014 +++ src/lib/libc/atomic/atomic_cas.3 Sun Feb 2 17:32:38 2014 @@ -1,4 +1,4 @@ -.\" $NetBSD: atomic_cas.3,v 1.3 2014/02/02 17:30:06 dholland Exp $ +.\" $NetBSD: atomic_cas.3,v 1.4 2014/02/02 17:32:38 dholland Exp $ .\" .\" Copyright (c) 2007, 2010 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -100,15 +100,11 @@ The non-interlocked variants, .Fn *_ni , guarantee atomicity within the same CPU with respect to interrupts and preemption. -For example, they are suitable for synchronizing compare-and-swap -operations on a variable shared by a thread and an interrupt -that are bound to the same CPU. -The -.Fn *_ni -variants are not atomic with respect to different CPUs. -.Fn *_ni -variants should avoid the interprocessor synchronization overhead -of the standard compare-and-swap operations. +They are not atomic with respect to different CPUs. +These can be used to avoid interprocessor synchronization overhead +in some cases; for example, they are suitable for synchronized +operations on a variable shared by a thread and an interrupt that are +bound to the same CPU. .Pp The 64-bit variants of these functions are available only on platforms that can support atomic 64-bit memory access.