This commit is contained in:
Sebastian 2021-02-07 20:11:24 -03:00
parent 07a5f6fb82
commit 93347b3904
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1
2 changed files with 20 additions and 14 deletions

View File

@ -1427,6 +1427,8 @@ do_shutdown (void *cls)
done_task = NULL;
}
/* shut down worker threads */
if (NULL != workers)
{
GNUNET_assert (0 == pthread_mutex_lock (&work_lock));
in_shutdown = true;
GNUNET_assert (0 == pthread_cond_broadcast (&work_cond));
@ -1434,6 +1436,7 @@ do_shutdown (void *cls)
for (unsigned int i = 0; i<num_workers; i++)
GNUNET_assert (0 == pthread_join (workers[i],
NULL));
}
if (NULL != done_signal)
{
GNUNET_break (GNUNET_OK ==

View File

@ -1798,6 +1798,8 @@ do_shutdown (void *cls)
done_task = NULL;
}
/* shut down worker threads */
if (NULL != workers)
{
GNUNET_assert (0 == pthread_mutex_lock (&work_lock));
in_shutdown = true;
GNUNET_assert (0 == pthread_cond_broadcast (&work_cond));
@ -1805,6 +1807,7 @@ do_shutdown (void *cls)
for (unsigned int i = 0; i<num_workers; i++)
GNUNET_assert (0 == pthread_join (workers[i],
NULL));
}
if (NULL != done_signal)
{
GNUNET_break (GNUNET_OK ==