mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 00:28:20 +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