[glib/wip/mutexes: 57/58] g_thread_init: take a gpointer as the arg
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/mutexes: 57/58] g_thread_init: take a gpointer as the arg
- Date: Mon, 19 Sep 2011 05:16:52 +0000 (UTC)
commit 0be2b690eed5d5ec89857769142cc4ff62b847cb
Author: Ryan Lortie <desrt desrt ca>
Date: Mon Sep 19 01:02:44 2011 -0400
g_thread_init: take a gpointer as the arg
GThreadFunctions is about to disappear.
glib/gthread.h | 2 +-
gthread/gthread-impl.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/glib/gthread.h b/glib/gthread.h
index a1c9c3d..928fb99 100644
--- a/glib/gthread.h
+++ b/glib/gthread.h
@@ -158,7 +158,7 @@ GLIB_VAR guint64 (*g_thread_gettime) (void);
* only be called once, and must not be called directly or indirectly
* 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
* g_thread_supported macro but provided for language bindings.
diff --git a/gthread/gthread-impl.c b/gthread/gthread-impl.c
index 123faa0..b623e12 100644
--- a/gthread/gthread-impl.c
+++ b/gthread/gthread-impl.c
@@ -36,7 +36,7 @@
#include "gthreadprivate.h"
void
-g_thread_init (GThreadFunctions *init)
+g_thread_init (gpointer init)
{
static gboolean already_done;
@@ -52,7 +52,7 @@ g_thread_init (GThreadFunctions *init)
}
void
-g_thread_init_with_errorcheck_mutexes (GThreadFunctions *vtable)
+g_thread_init_with_errorcheck_mutexes (gpointer vtable)
{
g_assert (vtable == NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]