Created
November 16, 2014 05:59
-
-
Save caughtinflux/21afdd78803487f0ae37 to your computer and use it in GitHub Desktop.
Simple macro that I use with OSSpinLocks and blocks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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