Skip to content

Instantly share code, notes, and snippets.

@shixzie
Created July 29, 2017 04:08
Show Gist options
  • Save shixzie/c4922f6c881077cef4bd54455316165d to your computer and use it in GitHub Desktop.
Save shixzie/c4922f6c881077cef4bd54455316165d to your computer and use it in GitHub Desktop.
func Add<T>(addr *T, delta T) (new T)
func CompareAndSwap<T>(addr *T, old, new T) (swapped bool)
func Load<T>(addr *T) (val T)
func Store<T>(addr *T, val T)
func Swap<T>(addr *T, new T) (old T)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment