mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 15:56:23 +01:00
thread: remove GSystemThread assign/equal
These are no longer in use.
This commit is contained in:
parent
903705edf2
commit
47e20ed3ac
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user