Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for atomic_casPointer (0.21 sec)

  1. src/runtime/atomic_pointer.go

    	atomicstorep(unsafe.Pointer(ptr), new)
    }
    
    // atomic_casPointer is the implementation of runtime/internal/UnsafePointer.CompareAndSwap
    // (like CompareAndSwapNoWB but with the write barrier).
    //
    //go:nosplit
    //go:linkname atomic_casPointer internal/runtime/atomic.casPointer
    func atomic_casPointer(ptr *unsafe.Pointer, old, new unsafe.Pointer) bool {
    	if writeBarrier.enabled {
    		atomicwb(ptr, new)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 4K bytes
    - Viewed (0)
Back to top