threading: lock signal_queue_spinlock in queue_signal with the right thread

This commit is contained in:
Marius Gerbershagen 2018-01-22 21:56:46 +01:00
parent 34ca2a2f38
commit 3946e2031f

View file

@ -375,7 +375,7 @@ handle_all_queued(cl_env_ptr env)
static void
queue_signal(cl_env_ptr env, cl_object code, int allocate)
{
ECL_WITH_SPINLOCK_BEGIN(env, &env->interrupt_struct->signal_queue_spinlock) {
ECL_WITH_SPINLOCK_BEGIN(ecl_process_env(), &env->interrupt_struct->signal_queue_spinlock) {
cl_object record;
if (allocate) {
record = ecl_list1(ECL_NIL);