Skip to content

Instantly share code, notes, and snippets.

@sbahra
Created November 29, 2016 02:15
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 sbahra/e339936b7ef1a7bd20386bbf20460206 to your computer and use it in GitHub Desktop.
Save sbahra/e339936b7ef1a7bd20386bbf20460206 to your computer and use it in GitHub Desktop.
/*
* Defines an elision implementation according to the following variables:
* N - Namespace of elision implementation.
* T - Typename of mutex.
* L_P - Lock predicate, returns false if resource is available.
* L - Function to call if resource is unavailable of transaction aborts.
* U_P - Unlock predicate, returns false if elision failed.
* U - Function to call if transaction failed.
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment