projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e75e9c3
)
gtk-doc g_thread_ref() and g_thread_unref()
author
Ryan Lortie
<desrt@desrt.ca>
Sat, 15 Oct 2011 13:48:22 +0000
(09:48 -0400)
committer
Ryan Lortie
<desrt@desrt.ca>
Sat, 15 Oct 2011 13:48:22 +0000
(09:48 -0400)
glib/gthread.c
patch
|
blob
|
history
diff --git
a/glib/gthread.c
b/glib/gthread.c
index
191f543
..
66939f5
100644
(file)
--- a/
glib/gthread.c
+++ b/
glib/gthread.c
@@
-672,6
+672,15
@@
void
/* GThread {{{1 -------------------------------------------------------- */
/* GThread {{{1 -------------------------------------------------------- */
+/**
+ * g_thread_ref:
+ * @thread: a #GThread
+ *
+ * Increase the reference count on @thread.
+ *
+ * Returns: a new reference to @thread
+ * Since: 2.32
+ **/
GThread *
g_thread_ref (GThread *thread)
{
GThread *
g_thread_ref (GThread *thread)
{
@@
-682,6
+691,15
@@
g_thread_ref (GThread *thread)
return thread;
}
return thread;
}
+/**
+ * g_thread_unref:
+ * @thread: a #GThread
+ *
+ * Decrease the reference count on @thread, possibly freeing all
+ * resources associated with it.
+ *
+ * Since: 2.32
+ **/
void
g_thread_unref (GThread *thread)
{
void
g_thread_unref (GThread *thread)
{