GThread: make refcounting public

This commit is contained in:
Ryan Lortie
2011-10-13 00:29:04 -04:00
parent 62be9365d9
commit b0e73ca390
3 changed files with 15 additions and 1 deletions

View File

@@ -666,7 +666,17 @@ void
/* GThread {{{1 -------------------------------------------------------- */
static void
GThread *
g_thread_ref (GThread *thread)
{
GRealThread *real = (GRealThread *) thread;
g_atomic_int_inc (&real->ref_count);
return thread;
}
void
g_thread_unref (GThread *thread)
{
GRealThread *real = (GRealThread *) thread;