Renamed to glib/gthreadprivate.h and moved system thread identifier
2006-05-09 Sebastian Wilhelmi <wilhelmi@google.com>
* glib/gthreadinit.h: Renamed to glib/gthreadprivate.h and moved
system thread identifier comparision and assignment macros from
glib/gthread.c to glib/gthreadprivate.h.
* glib/Makefile.am, glib/gatomic.c, glib/gconvert.c, glib/gmain.c,
glib/gmem.c, glib/gmessages.c, glib/grand.c, glib/gslice.c,
glib/gthread.c, glib/gutils.c, gthread/gthread-impl.c: Use
glib/gthreadprivate.h instead of glib/gthreadinit.h.
* gthread/gthread-impl.c: Use GSystemThread instead of GThread for
owner determination. This fixes #311043 and is mostly modeled
after the patch from jylefort@FreeBSD.org.
2006-05-10 02:44:50 +02:00
|
|
|
/* GLIB - Library of useful routines for C programming
|
|
|
|
*
|
|
|
|
* gthreadprivate.h - GLib internal thread system related declarations.
|
2003-02-14 16:08:46 +01:00
|
|
|
*
|
|
|
|
* Copyright (C) 2003 Sebastian Wilhelmi
|
|
|
|
*
|
2016-12-27 17:40:22 +01:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
2017-01-05 12:47:07 +01:00
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
2003-02-14 16:08:46 +01:00
|
|
|
*
|
2016-12-27 17:40:22 +01:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
2003-02-14 16:08:46 +01:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
2016-12-27 17:40:22 +01:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* along with this library; if not, see <http://www.gnu.org/licenses/>.
|
2003-02-14 16:08:46 +01:00
|
|
|
*/
|
|
|
|
|
Renamed to glib/gthreadprivate.h and moved system thread identifier
2006-05-09 Sebastian Wilhelmi <wilhelmi@google.com>
* glib/gthreadinit.h: Renamed to glib/gthreadprivate.h and moved
system thread identifier comparision and assignment macros from
glib/gthread.c to glib/gthreadprivate.h.
* glib/Makefile.am, glib/gatomic.c, glib/gconvert.c, glib/gmain.c,
glib/gmem.c, glib/gmessages.c, glib/grand.c, glib/gslice.c,
glib/gthread.c, glib/gutils.c, gthread/gthread-impl.c: Use
glib/gthreadprivate.h instead of glib/gthreadinit.h.
* gthread/gthread-impl.c: Use GSystemThread instead of GThread for
owner determination. This fixes #311043 and is mostly modeled
after the patch from jylefort@FreeBSD.org.
2006-05-10 02:44:50 +02:00
|
|
|
#ifndef __G_THREADPRIVATE_H__
|
|
|
|
#define __G_THREADPRIVATE_H__
|
2003-02-14 16:08:46 +01:00
|
|
|
|
2011-10-02 07:29:08 +02:00
|
|
|
#include "deprecated/gthread.h"
|
2003-02-14 16:08:46 +01:00
|
|
|
|
2011-10-12 22:50:43 +02:00
|
|
|
typedef struct _GRealThread GRealThread;
|
2011-10-13 07:22:51 +02:00
|
|
|
struct _GRealThread
|
|
|
|
{
|
|
|
|
GThread thread;
|
2011-10-12 22:50:43 +02:00
|
|
|
|
2011-10-13 07:22:51 +02:00
|
|
|
gint ref_count;
|
|
|
|
gboolean ours;
|
2011-11-15 04:18:13 +01:00
|
|
|
gchar *name;
|
2011-10-13 07:22:51 +02:00
|
|
|
gpointer retval;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* system thread implementation (gthread-posix.c, gthread-win32.c) */
|
2011-10-13 04:29:13 +02:00
|
|
|
void g_system_thread_wait (GRealThread *thread);
|
2011-10-13 04:03:14 +02:00
|
|
|
|
2011-10-13 04:29:13 +02:00
|
|
|
GRealThread * g_system_thread_new (GThreadFunc func,
|
|
|
|
gulong stack_size,
|
|
|
|
GError **error);
|
2011-10-13 04:03:14 +02:00
|
|
|
void g_system_thread_free (GRealThread *thread);
|
Renamed to glib/gthreadprivate.h and moved system thread identifier
2006-05-09 Sebastian Wilhelmi <wilhelmi@google.com>
* glib/gthreadinit.h: Renamed to glib/gthreadprivate.h and moved
system thread identifier comparision and assignment macros from
glib/gthread.c to glib/gthreadprivate.h.
* glib/Makefile.am, glib/gatomic.c, glib/gconvert.c, glib/gmain.c,
glib/gmem.c, glib/gmessages.c, glib/grand.c, glib/gslice.c,
glib/gthread.c, glib/gutils.c, gthread/gthread-impl.c: Use
glib/gthreadprivate.h instead of glib/gthreadinit.h.
* gthread/gthread-impl.c: Use GSystemThread instead of GThread for
owner determination. This fixes #311043 and is mostly modeled
after the patch from jylefort@FreeBSD.org.
2006-05-10 02:44:50 +02:00
|
|
|
|
2011-10-13 07:22:51 +02:00
|
|
|
void g_system_thread_exit (void);
|
|
|
|
void g_system_thread_set_name (const gchar *name);
|
|
|
|
|
2011-09-19 05:18:17 +02:00
|
|
|
|
2011-10-13 07:22:51 +02:00
|
|
|
/* gthread.c */
|
2011-10-13 06:43:33 +02:00
|
|
|
GThread * g_thread_new_internal (const gchar *name,
|
|
|
|
GThreadFunc proxy,
|
|
|
|
GThreadFunc func,
|
|
|
|
gpointer data,
|
|
|
|
gsize stack_size,
|
|
|
|
GError **error);
|
2011-10-02 15:51:13 +02:00
|
|
|
|
2011-10-13 07:22:51 +02:00
|
|
|
gpointer g_thread_proxy (gpointer thread);
|
Renamed to glib/gthreadprivate.h and moved system thread identifier
2006-05-09 Sebastian Wilhelmi <wilhelmi@google.com>
* glib/gthreadinit.h: Renamed to glib/gthreadprivate.h and moved
system thread identifier comparision and assignment macros from
glib/gthread.c to glib/gthreadprivate.h.
* glib/Makefile.am, glib/gatomic.c, glib/gconvert.c, glib/gmain.c,
glib/gmem.c, glib/gmessages.c, glib/grand.c, glib/gslice.c,
glib/gthread.c, glib/gutils.c, gthread/gthread-impl.c: Use
glib/gthreadprivate.h instead of glib/gthreadinit.h.
* gthread/gthread-impl.c: Use GSystemThread instead of GThread for
owner determination. This fixes #311043 and is mostly modeled
after the patch from jylefort@FreeBSD.org.
2006-05-10 02:44:50 +02:00
|
|
|
|
|
|
|
#endif /* __G_THREADPRIVATE_H__ */
|