Skip to content

Instantly share code, notes, and snippets.

@caughtinflux
Created November 16, 2014 05:59
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 caughtinflux/21afdd78803487f0ae37 to your computer and use it in GitHub Desktop.
Save caughtinflux/21afdd78803487f0ae37 to your computer and use it in GitHub Desktop.
Simple macro that I use with OSSpinLocks and blocks
LOCKED_EXEC(_lock, _block) OSSpinLockLock(&_lock); _block(); OSSpinLockUnlock(&_lock);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment