[glib] thread: remove GSystemThread assign/equal



commit 47e20ed3ac5206c8aa83f7d307d9802328eed05f
Author: Ryan Lortie <desrt desrt ca>
Date:   Wed Oct 12 18:24:48 2011 -0400

    thread: remove GSystemThread assign/equal
    
    These are no longer in use.

 glib/gthread-posix.c  |    7 -------
 glib/gthread-win32.c  |    7 -------
 glib/gthreadprivate.h |    9 ---------
 3 files changed, 0 insertions(+), 23 deletions(-)
---
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);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]