mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 21:43:40 +00:00
[common] locked section macro should use it's argument
This commit is contained in:
parent
711fbc549a
commit
547598c61c
@ -29,7 +29,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#define INTERLOCKED_SECTION(lock, x) \
|
||||
while(__sync_lock_test_and_set(&(lock), 1)) while((lock)); \
|
||||
x\
|
||||
__sync_lock_release(&this->deviceContextLock);
|
||||
__sync_lock_release(&(lock));
|
||||
|
||||
#else
|
||||
#define INTERLOCKED_OR8 InterlockedOr8
|
||||
|
Loading…
Reference in New Issue
Block a user