[glib] Expand docs for thread names
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Expand docs for thread names
- Date: Sun, 18 Aug 2013 22:13:40 +0000 (UTC)
commit 635196b1ffc5e810431b5746d52138d2c3bcb1db
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Aug 18 18:13:02 2013 -0400
Expand docs for thread names
Thread names may be NULL, and don't have to be unique.
The docs should tell you that.
glib/gthread.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/glib/gthread.c b/glib/gthread.c
index c27bca6..c4114aa 100644
--- a/glib/gthread.c
+++ b/glib/gthread.c
@@ -802,7 +802,7 @@ g_thread_proxy (gpointer data)
/**
* g_thread_new:
- * @name: a name for the new thread
+ * @name: (allow-none): an (optional) name for the new thread
* @func: a function to execute in the new thread
* @data: an argument to supply to the new thread
*
@@ -813,6 +813,7 @@ g_thread_proxy (gpointer data)
* with g_thread_join().
*
* The @name can be useful for discriminating threads in a debugger.
+ * It is not used for other purposes and does not have to be unique.
* Some systems restrict the length of @name to 16 bytes.
*
* If the thread can not be created the program aborts. See
@@ -843,7 +844,7 @@ g_thread_new (const gchar *name,
/**
* g_thread_try_new:
- * @name: a name for the new thread
+ * @name: (allow-none): an (optional) name for the new thread
* @func: a function to execute in the new thread
* @data: an argument to supply to the new thread
* @error: return location for error, or %NULL
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]