mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-04-23 02:00:53 -07:00
When giving up a lock there is no need to disable interrupts.
This commit is contained in:
parent
445431daa4
commit
a444e8d290
1 changed files with 0 additions and 2 deletions
|
|
@ -109,12 +109,10 @@ mp_giveup_lock(cl_object lock)
|
|||
unlikely_if (lock->lock.owner != own_process) {
|
||||
FEerror_not_owned(lock);
|
||||
}
|
||||
ecl_disable_interrupts_env(env);
|
||||
if (--lock->lock.counter == 0) {
|
||||
lock->lock.owner = Cnil;
|
||||
ecl_wakeup_waiters(lock, ECL_WAKEUP_ONE);
|
||||
}
|
||||
ecl_enable_interrupts_env(env);
|
||||
ecl_return1(env, Ct);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue