summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-01-28 22:01:03 +0100
committerChristian Grothoff <christian@grothoff.org>2021-01-28 22:01:03 +0100
commit0e10a48a17fb62364d091d4c498a7ca14cb4eee6 (patch)
treedee32b88aa3f3e57916ea3e22464f3eb0975e945 /src/util
parent4dd87e111852f25dc5e55c33ee2fb2a3fa475a83 (diff)
downloadexchange-0e10a48a17fb62364d091d4c498a7ca14cb4eee6.tar.gz
exchange-0e10a48a17fb62364d091d4c498a7ca14cb4eee6.tar.bz2
exchange-0e10a48a17fb62364d091d4c498a7ca14cb4eee6.zip
swap signal and unlock logic to hopefully nail #6726
Diffstat (limited to 'src/util')
-rw-r--r--src/util/taler-exchange-secmod-eddsa.c2
-rw-r--r--src/util/taler-exchange-secmod-rsa.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/util/taler-exchange-secmod-eddsa.c b/src/util/taler-exchange-secmod-eddsa.c
index 1280459f..66562255 100644
--- a/src/util/taler-exchange-secmod-eddsa.c
+++ b/src/util/taler-exchange-secmod-eddsa.c
@@ -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));
}
diff --git a/src/util/taler-exchange-secmod-rsa.c b/src/util/taler-exchange-secmod-rsa.c
index 27d3d7a9..742175c0 100644
--- a/src/util/taler-exchange-secmod-rsa.c
+++ b/src/util/taler-exchange-secmod-rsa.c
@@ -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));
}