mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-27 01:26:52 +02:00
Expand docs for thread names
Thread names may be NULL, and don't have to be unique. The docs should tell you that.
This commit is contained in:
parent
3c040f8534
commit
635196b1ff
@ -802,7 +802,7 @@ g_thread_proxy (gpointer data)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* g_thread_new:
|
* 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
|
* @func: a function to execute in the new thread
|
||||||
* @data: an argument to supply to 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().
|
* with g_thread_join().
|
||||||
*
|
*
|
||||||
* The @name can be useful for discriminating threads in a debugger.
|
* 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.
|
* Some systems restrict the length of @name to 16 bytes.
|
||||||
*
|
*
|
||||||
* If the thread can not be created the program aborts. See
|
* 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:
|
* 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
|
* @func: a function to execute in the new thread
|
||||||
* @data: an argument to supply to the new thread
|
* @data: an argument to supply to the new thread
|
||||||
* @error: return location for error, or %NULL
|
* @error: return location for error, or %NULL
|
||||||
|
Loading…
x
Reference in New Issue
Block a user