Skip to content

Instantly share code, notes, and snippets.

@eholk
Created July 2, 2012 22:28
Show Gist options
  • Select an option

  • Save eholk/3036139 to your computer and use it in GitHub Desktop.

Select an option

Save eholk/3036139 to your computer and use it in GitHub Desktop.
{
atomic<state_data_t>::transaction tx = state_data.transact();
tx->state = state;
tx->cond = NULL;
tx->cond_name = "none";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment