[glib-networking] tls: Add source tags to GTasks
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking] tls: Add source tags to GTasks
- Date: Tue, 23 Sep 2014 07:05:08 +0000 (UTC)
commit 10644ed63cb596d68cc48e59a7fb5f33cadd602e
Author: Philip Withnall <philip withnall collabora co uk>
Date: Tue Sep 16 16:54:55 2014 +0100
tls: Add source tags to GTasks
To help with debugging.
https://bugzilla.gnome.org/show_bug.cgi?id=736757
tls/gnutls/gtlsconnection-gnutls.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/tls/gnutls/gtlsconnection-gnutls.c b/tls/gnutls/gtlsconnection-gnutls.c
index 7dfeeec..348a32c 100644
--- a/tls/gnutls/gtlsconnection-gnutls.c
+++ b/tls/gnutls/gtlsconnection-gnutls.c
@@ -1312,6 +1312,7 @@ g_tls_connection_gnutls_handshake (GTlsConnection *conn,
GError *my_error = NULL;
task = g_task_new (conn, cancellable, NULL, NULL);
+ g_task_set_source_tag (task, g_tls_connection_gnutls_handshake);
begin_handshake (gnutls);
g_task_run_in_thread_sync (task, handshake_thread);
success = finish_handshake (gnutls, task, &my_error);
@@ -1397,12 +1398,14 @@ g_tls_connection_gnutls_handshake_async (GTlsConnection *conn,
GTask *thread_task, *caller_task;
caller_task = g_task_new (conn, cancellable, callback, user_data);
+ g_task_set_source_tag (caller_task, g_tls_connection_gnutls_handshake_async);
g_task_set_priority (caller_task, io_priority);
begin_handshake (G_TLS_CONNECTION_GNUTLS (conn));
thread_task = g_task_new (conn, cancellable,
handshake_thread_completed, caller_task);
+ g_task_set_source_tag (thread_task, g_tls_connection_gnutls_handshake_async);
g_task_set_priority (thread_task, io_priority);
g_task_run_in_thread (thread_task, async_handshake_thread);
g_object_unref (thread_task);
@@ -1427,6 +1430,8 @@ do_implicit_handshake (GTlsConnectionGnutls *gnutls,
/* We have op_mutex */
gnutls->priv->implicit_handshake = g_task_new (gnutls, cancellable, NULL, NULL);
+ g_task_set_source_tag (gnutls->priv->implicit_handshake,
+ do_implicit_handshake);
begin_handshake (gnutls);
@@ -1616,6 +1621,7 @@ g_tls_connection_gnutls_close_async (GIOStream *stream,
GTask *task;
task = g_task_new (stream, cancellable, callback, user_data);
+ g_task_set_source_tag (task, g_tls_connection_gnutls_close_async);
g_task_set_priority (task, io_priority);
g_task_run_in_thread (task, close_thread);
g_object_unref (task);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]