Op's code has a possible race condition race condition between the lock and compare.
"lock xadd %[lock], %[gate]\n" "cmp %[lock], %[open]\n"
OP identified OP identified:
lock
is not certainly made a shared variable.
Op's code has a possible race condition between the lock and compare.
"lock xadd %[lock], %[gate]\n" "cmp %[lock], %[open]\n"
OP identified:
lock
is not certainly made a shared variable.
Op's code has a possible race condition between the lock and compare.
"lock xadd %[lock], %[gate]\n" "cmp %[lock], %[open]\n"
OP identified:
lock
is not certainly made a shared variable.
Op's code has a possible race condition between the lock and compare.
"lock xadd %[lock], %[gate]\n" "cmp %[lock], %[open]\n"
OP identified:
lock
is not certainly made a shared variable.