Skip to content

Instantly share code, notes, and snippets.

@alexcrichton
Created August 25, 2015 23:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexcrichton/ddfb8aabfb9d96a85e14 to your computer and use it in GitHub Desktop.
Save alexcrichton/ddfb8aabfb9d96a85e14 to your computer and use it in GitHub Desktop.
  • #![feature] - may be good to show off stable rust?
  • "The problem" - code example uses data.take() while code above uses ptr::read
  • "clears the active thread" - clears the active flag
  • store_and_ref - alignment is a little off in code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment