Changes between Version 10 and Version 11 of Projects/GSoC/Atomic_Operations


Ignore:
Timestamp:
Aug 14, 2012, 6:16:10 PM (7 years ago)
Author:
WeiY
Comment:

/* References of atomic implementation */

Legend:

Unmodified
Added
Removed
Modified
  • Projects/GSoC/Atomic_Operations

    v10 v11  
    5050
    5151The end of 2011 brought new releases of both the C and C++ standards for the first time both of which contain a new set of atomic types and operations. The older versions of C and C++ had no support for atomic operations at all. The older versions of GCC and Clang provide the _sync_* family of built-in functions, which provide some atomic operations support. The GCC 4.7(or newer) and latest version Clang has provided built-in functions approximately match the requirements for C++11 memory model.
     52= Linux Atomic =
     53
     54The Linux kernel mainly implements two class of atomic primitives: one without return value and the other with return value. In the Linux kernel any the atomic operation that modifies some state in memory and returns information about the state (old or new) implies an SMP-conditional general memory barrier (smp_mb()) on each side of the actual operation (with the exception of explicit lock operations).
    5255= References =
    5356