Source file src/runtime/internal/atomic/doc.go

     1  // Copyright 2021 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  /*
     6  Package atomic provides atomic operations, independent of sync/atomic,
     7  to the runtime.
     8  
     9  On most platforms, the compiler is aware of the functions defined
    10  in this package, and they're replaced with platform-specific intrinsics.
    11  On other platforms, generic implementations are made available.
    12  
    13  Unless otherwise noted, operations defined in this package are sequentially
    14  consistent across threads with respect to the values they manipulate. More
    15  specifically, operations that happen in a specific order on one thread,
    16  will always be observed to happen in exactly that order by another thread.
    17  */
    18  package atomic
    19  

View as plain text