mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 23:07:18 +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) \
|
#define INTERLOCKED_SECTION(lock, x) \
|
||||||
while(__sync_lock_test_and_set(&(lock), 1)) while((lock)); \
|
while(__sync_lock_test_and_set(&(lock), 1)) while((lock)); \
|
||||||
x\
|
x\
|
||||||
__sync_lock_release(&this->deviceContextLock);
|
__sync_lock_release(&(lock));
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#define INTERLOCKED_OR8 InterlockedOr8
|
#define INTERLOCKED_OR8 InterlockedOr8
|
||||||
|
Loading…
Reference in New Issue
Block a user