mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +00:00
[client] fixed unlock define
This commit is contained in:
parent
5501d22a2d
commit
0753e63644
@ -48,5 +48,5 @@ static inline void nsleep(uint64_t ns)
|
||||
|
||||
typedef volatile int LG_Lock;
|
||||
#define LG_LOCK_INIT(x) (x) = 0
|
||||
#define LG_LOCK(x) while(__sync_lock_test_and_set(&(x), 1))
|
||||
#define LG_UNLOCK(x) __sync_lock_release(&this->mouseLock)
|
||||
#define LG_LOCK(x) while(__sync_lock_test_and_set(&(x), 1)) {nsleep(100);}
|
||||
#define LG_UNLOCK(x) __sync_lock_release(&x)
|
Loading…
Reference in New Issue
Block a user