swap signal and unlock logic to hopefully nail #6726

This commit is contained in:
Christian Grothoff 2021-01-28 22:01:03 +01:00
parent 4dd87e1118
commit 0e10a48a17
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
2 changed files with 2 additions and 2 deletions

View File

@ -637,8 +637,8 @@ handle_sign_request (const struct sockaddr_un *addr,
GNUNET_CONTAINER_DLL_insert (work_head,
work_tail,
wi);
GNUNET_assert (0 == pthread_mutex_unlock (&work_lock));
GNUNET_assert (0 == pthread_cond_signal (&work_cond));
GNUNET_assert (0 == pthread_mutex_unlock (&work_lock));
}

View File

@ -710,8 +710,8 @@ handle_sign_request (const struct sockaddr_un *addr,
GNUNET_CONTAINER_DLL_insert (work_head,
work_tail,
wi);
GNUNET_assert (0 == pthread_mutex_unlock (&work_lock));
GNUNET_assert (0 == pthread_cond_signal (&work_cond));
GNUNET_assert (0 == pthread_mutex_unlock (&work_lock));
}