Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/runtime/iface.go

    	newC := buildTypeAssertCache(oldC, t, tab)
    
    	// Update cache. Use compare-and-swap so if multiple threads
    	// are fighting to update the cache, at least one of their
    	// updates will stick.
    	atomic_casPointer((*unsafe.Pointer)(unsafe.Pointer(&s.Cache)), unsafe.Pointer(oldC), unsafe.Pointer(newC))
    
    	return tab
    }
    
    func buildTypeAssertCache(oldC *abi.TypeAssertCache, typ *_type, tab *itab) *abi.TypeAssertCache {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 22.5K bytes
    - Viewed (0)
Back to top