Skip to content

Instantly share code, notes, and snippets.

@stepancheg
Created February 6, 2013 07:58
Show Gist options
  • Save stepancheg/4721067 to your computer and use it in GitHub Desktop.
Save stepancheg/4721067 to your computer and use it in GitHub Desktop.
void foo(long* x, long* y) {
__atomic_store_n(x, 17l, __ATOMIC_SEQ_CST);
__atomic_store_n(y, 19l, __ATOMIC_SEQ_CST);
}
void bar(long *x, long* y) {
*x = 21l;
*y = 23l;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment