mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-08 10:14:04 +02:00
Merge branch 'threaded-resolver-assertion-fix' into 'main'
gthreadedresolver: Remove some incorrect assertions See merge request GNOME/glib!3405
This commit is contained in:
@@ -1439,7 +1439,6 @@ timeout_cb (gpointer user_data)
|
|||||||
|
|
||||||
/* Signal completion of the task. */
|
/* Signal completion of the task. */
|
||||||
g_mutex_lock (&data->lock);
|
g_mutex_lock (&data->lock);
|
||||||
g_assert (!data->has_returned);
|
|
||||||
data->has_returned = TRUE;
|
data->has_returned = TRUE;
|
||||||
g_cond_broadcast (&data->cond);
|
g_cond_broadcast (&data->cond);
|
||||||
g_mutex_unlock (&data->lock);
|
g_mutex_unlock (&data->lock);
|
||||||
@@ -1470,7 +1469,6 @@ cancelled_cb (GCancellable *cancellable,
|
|||||||
|
|
||||||
/* Signal completion of the task. */
|
/* Signal completion of the task. */
|
||||||
g_mutex_lock (&data->lock);
|
g_mutex_lock (&data->lock);
|
||||||
g_assert (!data->has_returned);
|
|
||||||
data->has_returned = TRUE;
|
data->has_returned = TRUE;
|
||||||
g_cond_broadcast (&data->cond);
|
g_cond_broadcast (&data->cond);
|
||||||
g_mutex_unlock (&data->lock);
|
g_mutex_unlock (&data->lock);
|
||||||
@@ -1605,7 +1603,6 @@ threaded_resolver_worker_cb (gpointer task_data,
|
|||||||
|
|
||||||
/* Signal completion of a task. */
|
/* Signal completion of a task. */
|
||||||
g_mutex_lock (&data->lock);
|
g_mutex_lock (&data->lock);
|
||||||
g_assert (!data->has_returned);
|
|
||||||
data->has_returned = TRUE;
|
data->has_returned = TRUE;
|
||||||
g_cond_broadcast (&data->cond);
|
g_cond_broadcast (&data->cond);
|
||||||
g_mutex_unlock (&data->lock);
|
g_mutex_unlock (&data->lock);
|
||||||
|
Reference in New Issue
Block a user