Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CompareAndSwapInt64 (0.25 sec)

  1. cmd/xl-storage-disk-id-check.go

    		atomic.StoreInt64(&e.cachedSec, t)
    	})
    	acc := e.cached.Load()
    	if lastT := atomic.LoadInt64(&e.cachedSec); lastT != t {
    		// Check if lastT was changed by someone else.
    		if atomic.CompareAndSwapInt64(&e.cachedSec, lastT, t) {
    			// Now we swap in a new.
    			newAcc := &AccElem{}
    			old := e.cached.Swap(newAcc)
    			var a AccElem
    			a.Size = atomic.LoadInt64(&old.Size)
    			a.Total = atomic.LoadInt64(&old.Total)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 33K bytes
    - Viewed (0)
  2. api/go1.txt

    pkg sync/atomic, func AddUint64(*uint64, uint64) uint64
    pkg sync/atomic, func AddUintptr(*uintptr, uintptr) uintptr
    pkg sync/atomic, func CompareAndSwapInt32(*int32, int32, int32) bool
    pkg sync/atomic, func CompareAndSwapInt64(*int64, int64, int64) bool
    pkg sync/atomic, func CompareAndSwapPointer(*unsafe.Pointer, unsafe.Pointer, unsafe.Pointer) bool
    pkg sync/atomic, func CompareAndSwapUint32(*uint32, uint32, uint32) bool
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (1)
Back to top