mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-07 14:10:05 +02:00
Add thread_equal function to allow for platform defined function to
2001-09-19 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * glib/gthread.h (GThreadFunctions): Add thread_equal function to allow for platform defined function to compare two threads. * glib/gthread.c: Use g_thread_functions_for_glib_use.thread_equal when non-NULL instead of ==. * gthread/gthread-posix.c: Add g_thread_equal_posix_impl and add to the function vector g_thread_functions_for_glib_use_default. * gthread/gthread-solaris.c, gthread/gthread-win32.c: Add NULL as equal function, as on those two platforms you don't need an equal function.
This commit is contained in:
committed by
Sebastian Wilhelmi
parent
5ad6ec44c6
commit
f8f4c3778a
@@ -102,6 +102,8 @@ struct _GThreadFunctions
|
||||
void (*thread_set_priority)(gpointer thread,
|
||||
GThreadPriority priority);
|
||||
void (*thread_self) (gpointer thread);
|
||||
gboolean (*thread_equal) (gpointer thread1,
|
||||
gpointer thread2);
|
||||
};
|
||||
|
||||
GLIB_VAR GThreadFunctions g_thread_functions_for_glib_use;
|
||||
|
Reference in New Issue
Block a user