regex: Add PARTIAL_HARD match option
[glib.git] / glib / gthreadprivate.h
blob6b974debb63910283f7ac6fab88d9e72753015bb
1 /* GLIB - Library of useful routines for C programming
3 * gthreadprivate.h - GLib internal thread system related declarations.
5 * Copyright (C) 2003 Sebastian Wilhelmi
7 * The Gnome Library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public License as
9 * published by the Free Software Foundation; either version 2 of the
10 * License, or (at your option) any later version.
12 * The Gnome Library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with the Gnome Library; see the file COPYING.LIB. If not,
19 * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 * Boston, MA 02111-1307, USA.
23 #ifndef __G_THREADPRIVATE_H__
24 #define __G_THREADPRIVATE_H__
26 #include "deprecated/gthread.h"
28 typedef struct _GRealThread GRealThread;
29 struct _GRealThread
31 GThread thread;
33 gint ref_count;
34 gboolean ours;
35 gchar *name;
36 gpointer retval;
39 /* system thread implementation (gthread-posix.c, gthread-win32.c) */
40 G_GNUC_INTERNAL
41 void g_system_thread_wait (GRealThread *thread);
43 G_GNUC_INTERNAL
44 GRealThread * g_system_thread_new (GThreadFunc func,
45 gulong stack_size,
46 GError **error);
47 G_GNUC_INTERNAL
48 void g_system_thread_free (GRealThread *thread);
50 G_GNUC_INTERNAL
51 void g_system_thread_exit (void);
52 G_GNUC_INTERNAL
53 void g_system_thread_set_name (const gchar *name);
56 /* gthread.c */
57 G_GNUC_INTERNAL
58 GThread * g_thread_new_internal (const gchar *name,
59 GThreadFunc proxy,
60 GThreadFunc func,
61 gpointer data,
62 gsize stack_size,
63 GError **error);
65 G_GNUC_INTERNAL
66 gpointer g_thread_proxy (gpointer thread);
68 #endif /* __G_THREADPRIVATE_H__ */