From: Ryan Lortie Date: Wed, 12 Oct 2011 22:24:48 +0000 (-0400) Subject: thread: remove GSystemThread assign/equal X-Git-Tag: 2.31.0~143 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=47e20ed3ac5206c8aa83f7d307d9802328eed05f;p=platform%2Fupstream%2Fglib.git thread: remove GSystemThread assign/equal These are no longer in use. --- diff --git a/glib/gthread-posix.c b/glib/gthread-posix.c index 9e86179..6954f3f 100644 --- a/glib/gthread-posix.c +++ b/glib/gthread-posix.c @@ -1146,13 +1146,6 @@ g_system_thread_self (gpointer thread) *(pthread_t*)thread = pthread_self(); } -gboolean -g_system_thread_equal (gpointer thread1, - gpointer thread2) -{ - return (pthread_equal (*(pthread_t*)thread1, *(pthread_t*)thread2) != 0); -} - void g_system_thread_set_name (const gchar *name) { diff --git a/glib/gthread-win32.c b/glib/gthread-win32.c index 245a4fb..c2d0b7e 100644 --- a/glib/gthread-win32.c +++ b/glib/gthread-win32.c @@ -563,13 +563,6 @@ g_system_thread_join (gpointer thread) g_free (target); } -gboolean -g_system_thread_equal (gpointer thread1, - gpointer thread2) -{ - return ((GSystemThread*)thread1)->dummy_pointer == ((GSystemThread*)thread2)->dummy_pointer; -} - void g_system_thread_set_name (const gchar *name) { diff --git a/glib/gthreadprivate.h b/glib/gthreadprivate.h index 5ed180c..f9cbb7c 100644 --- a/glib/gthreadprivate.h +++ b/glib/gthreadprivate.h @@ -29,15 +29,6 @@ G_BEGIN_DECLS -/* System thread identifier comparison and assignment */ -#if GLIB_SIZEOF_SYSTEM_THREAD == SIZEOF_VOID_P -# define g_system_thread_assign(dest, src) \ - ((dest).dummy_pointer = (src).dummy_pointer) -#else /* GLIB_SIZEOF_SYSTEM_THREAD != SIZEOF_VOID_P */ -# define g_system_thread_assign(dest, src) \ - (memcpy (&(dest), &(src), GLIB_SIZEOF_SYSTEM_THREAD)) -#endif /* GLIB_SIZEOF_SYSTEM_THREAD == SIZEOF_VOID_P */ - typedef struct _GRealThread GRealThread; typedef void (*GThreadSetup) (GRealThread *thread);