mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-29 13:23:31 +02:00
Moved func and arg members from GRealThread to GThread, such that they can
2001-05-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * gmain.c, gthread.c, gthread.h: Moved func and arg members from GRealThread to GThread, such that they can be accessed by the user. * gthread.c, gthread.h: Due to popular demand (Tim being the populus here ;-) threads now have a 'return value', which is returned by g_thread_join and is either the return of the topmost thread function or the value given to g_thread_exit. * gthreadpool.c, tests/mainloop-test.c, tests/thread-test.c: Adapted to the above change.
This commit is contained in:
committed by
Sebastian Wilhelmi
parent
4d7747a58e
commit
cd00d6e2cc
@@ -123,7 +123,7 @@ timeout_callback (gpointer data)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void
|
||||
gpointer
|
||||
adder_thread (gpointer data)
|
||||
{
|
||||
GMainContext *context;
|
||||
@@ -179,6 +179,8 @@ adder_thread (gpointer data)
|
||||
g_mutex_unlock (context_array_mutex);
|
||||
|
||||
cleanup_crawlers (context);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user