mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-23 12:41:50 +01:00
g_thread_init: take a gpointer as the arg
GThreadFunctions is about to disappear.
This commit is contained in:
parent
abba53e396
commit
97972fbb3a
@ -158,7 +158,7 @@ GLIB_VAR guint64 (*g_thread_gettime) (void);
|
|||||||
* only be called once, and must not be called directly or indirectly
|
* only be called once, and must not be called directly or indirectly
|
||||||
* from another glib-function, e.g. as a callback.
|
* from another glib-function, e.g. as a callback.
|
||||||
*/
|
*/
|
||||||
void g_thread_init (GThreadFunctions *vtable);
|
void g_thread_init (gpointer vtable);
|
||||||
|
|
||||||
/* Checks if thread support is initialized. Identical to the
|
/* Checks if thread support is initialized. Identical to the
|
||||||
* g_thread_supported macro but provided for language bindings.
|
* g_thread_supported macro but provided for language bindings.
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
#include "gthreadprivate.h"
|
#include "gthreadprivate.h"
|
||||||
|
|
||||||
void
|
void
|
||||||
g_thread_init (GThreadFunctions *init)
|
g_thread_init (gpointer init)
|
||||||
{
|
{
|
||||||
static gboolean already_done;
|
static gboolean already_done;
|
||||||
|
|
||||||
@ -52,7 +52,7 @@ g_thread_init (GThreadFunctions *init)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
g_thread_init_with_errorcheck_mutexes (GThreadFunctions *vtable)
|
g_thread_init_with_errorcheck_mutexes (gpointer vtable)
|
||||||
{
|
{
|
||||||
g_assert (vtable == NULL);
|
g_assert (vtable == NULL);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user