CPU: introduce cpu_atomic_xchg()
authorarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 1 Nov 2010 16:26:07 +0000 (16:26 +0000)
committerarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 1 Nov 2010 16:26:07 +0000 (16:26 +0000)
Add an architecture-optimized function to atomically exchange two
different cpu_atomic_t values.

More exactly, the function replaces the value of a cpu_atomic_t variable
and returns the old value, atomically.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4485 38d2e660-2303-0410-9eaa-f027e97ec537


No differences found