; * src/thread.c (acquire_global_lock): Fix thinko in last change.
This commit is contained in:
parent
f300852037
commit
86e6ed8521
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ acquire_global_lock (struct thread_state *self)
|
||||||
signal handler could have called maybe_reacquire_global_lock, in
|
signal handler could have called maybe_reacquire_global_lock, in
|
||||||
which case we are already holding the lock and shouldn't try
|
which case we are already holding the lock and shouldn't try
|
||||||
taking it again, or else we will hang forever. */
|
taking it again, or else we will hang forever. */
|
||||||
if (!(self && self->not_holding_lock))
|
if (!(self && !self->not_holding_lock))
|
||||||
sys_mutex_lock (&global_lock);
|
sys_mutex_lock (&global_lock);
|
||||||
post_acquire_global_lock (self);
|
post_acquire_global_lock (self);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue