thread: remove GSystemThread assign/equal

These are no longer in use.
This commit is contained in:
Ryan Lortie 2011-10-12 18:24:48 -04:00
parent 903705edf2
commit 47e20ed3ac
3 changed files with 0 additions and 23 deletions

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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);