10 lines
165 B
NASM
10 lines
165 B
NASM
|
global __pthread_spin_lock_helper
|
||
|
|
||
|
__pthread_spin_lock_helper:
|
||
|
mov ebx,[esp+4]
|
||
|
mov eax,1
|
||
|
xchg eax,[ebx]
|
||
|
test eax, eax
|
||
|
jnz __pthread_spin_lock_helper
|
||
|
ret
|