gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: try another tac


From: gnunet
Subject: [taler-exchange] branch master updated: try another tac
Date: Thu, 28 Jan 2021 22:36:04 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 7d0d8d9f try another tac
7d0d8d9f is described below

commit 7d0d8d9f1c641409f900afcff68acddec913def1
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Thu Jan 28 22:36:02 2021 +0100

    try another tac
---
 src/util/taler-exchange-secmod-eddsa.c | 4 ++++
 src/util/taler-exchange-secmod-rsa.c   | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/src/util/taler-exchange-secmod-eddsa.c 
b/src/util/taler-exchange-secmod-eddsa.c
index 66562255..d06c1e71 100644
--- a/src/util/taler-exchange-secmod-eddsa.c
+++ b/src/util/taler-exchange-secmod-eddsa.c
@@ -389,6 +389,8 @@ sign_worker (void *cls)
     if (! in_shutdown)
       break;
     /* queue is empty, wait for work */
+    GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+                "Crypto worker waiting for work...\n");
     GNUNET_assert (0 ==
                    pthread_cond_wait (&work_cond,
                                       &work_lock));
@@ -1629,6 +1631,8 @@ run (void *cls,
   /* start crypto workers */
   if (0 == num_workers)
     num_workers = sysconf (_SC_NPROCESSORS_CONF);
+  if (0 == num_workers)
+    num_workers = 1;
   workers = GNUNET_new_array (num_workers,
                               pthread_t);
   for (unsigned int i = 0; i<num_workers; i++)
diff --git a/src/util/taler-exchange-secmod-rsa.c 
b/src/util/taler-exchange-secmod-rsa.c
index 742175c0..dd37dd7a 100644
--- a/src/util/taler-exchange-secmod-rsa.c
+++ b/src/util/taler-exchange-secmod-rsa.c
@@ -449,6 +449,8 @@ sign_worker (void *cls)
     if (! in_shutdown)
       break;
     /* queue is empty, wait for work */
+    GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+                "Crypto worker waiting for work...\n");
     GNUNET_assert (0 ==
                    pthread_cond_wait (&work_cond,
                                       &work_lock));
@@ -2020,6 +2022,8 @@ run (void *cls,
   /* start crypto workers */
   if (0 == num_workers)
     num_workers = sysconf (_SC_NPROCESSORS_CONF);
+  if (0 == num_workers)
+    num_workers = 1;
   workers = GNUNET_new_array (num_workers,
                               pthread_t);
   for (unsigned int i = 0; i<num_workers; i++)

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]