Skip to content

Commit f7724c9

Browse files
committed
[erts] Fix build without native atomics
1 parent 5400ccf commit f7724c9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

erts/emulator/beam/erl_process_lock.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -991,6 +991,7 @@ erts_proc_lock_wait_until_released(Process *p, ErtsProcLocks locks)
991991
#if ERTS_PROC_LOCK_OWN_IMPL
992992
#if !ERTS_PROC_LOCK_ATOMIC_IMPL
993993
Uint32 was_locked;
994+
erts_pix_lock_t *pix_lck = ERTS_PID2PIXLOCK(p->common.id);
994995
erts_pix_lock(pix_lck);
995996
was_locked = (ERTS_PROC_LOCK_FLGS_READ_(&p->lock) & locks);
996997
erts_pix_unlock(pix_lck);

0 commit comments

Comments
 (0)