|
Packit |
db3073 |
/* GLIB - Library of useful routines for C programming
|
|
Packit |
db3073 |
*
|
|
Packit |
db3073 |
* gthreadprivate.h - GLib internal thread system related declarations.
|
|
Packit |
db3073 |
*
|
|
Packit |
db3073 |
* Copyright (C) 2003 Sebastian Wilhelmi
|
|
Packit |
db3073 |
*
|
|
Packit |
db3073 |
* The Gnome Library is free software; you can redistribute it and/or
|
|
Packit |
db3073 |
* modify it under the terms of the GNU Lesser General Public License as
|
|
Packit |
db3073 |
* published by the Free Software Foundation; either version 2 of the
|
|
Packit |
db3073 |
* License, or (at your option) any later version.
|
|
Packit |
db3073 |
*
|
|
Packit |
db3073 |
* The Gnome Library is distributed in the hope that it will be useful,
|
|
Packit |
db3073 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
db3073 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
db3073 |
* Lesser General Public License for more details.
|
|
Packit |
db3073 |
*
|
|
Packit |
db3073 |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit |
db3073 |
* License along with the Gnome Library; see the file COPYING.LIB. If not,
|
|
Packit |
db3073 |
* write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
Packit |
db3073 |
* Boston, MA 02111-1307, USA.
|
|
Packit |
db3073 |
*/
|
|
Packit |
db3073 |
|
|
Packit |
db3073 |
#ifndef __G_THREADPRIVATE_H__
|
|
Packit |
db3073 |
#define __G_THREADPRIVATE_H__
|
|
Packit |
db3073 |
|
|
Packit |
db3073 |
#include "deprecated/gthread.h"
|
|
Packit |
db3073 |
|
|
Packit |
db3073 |
typedef struct _GRealThread GRealThread;
|
|
Packit |
db3073 |
struct _GRealThread
|
|
Packit |
db3073 |
{
|
|
Packit |
db3073 |
GThread thread;
|
|
Packit |
db3073 |
|
|
Packit |
db3073 |
gint ref_count;
|
|
Packit |
db3073 |
gboolean ours;
|
|
Packit |
db3073 |
gchar *name;
|
|
Packit |
db3073 |
gpointer retval;
|
|
Packit |
db3073 |
};
|
|
Packit |
db3073 |
|
|
Packit |
db3073 |
/* system thread implementation (gthread-posix.c, gthread-win32.c) */
|
|
Packit |
db3073 |
G_GNUC_INTERNAL
|
|
Packit |
db3073 |
void g_system_thread_wait (GRealThread *thread);
|
|
Packit |
db3073 |
|
|
Packit |
db3073 |
G_GNUC_INTERNAL
|
|
Packit |
db3073 |
GRealThread * g_system_thread_new (GThreadFunc func,
|
|
Packit |
db3073 |
gulong stack_size,
|
|
Packit |
db3073 |
GError **error);
|
|
Packit |
db3073 |
G_GNUC_INTERNAL
|
|
Packit |
db3073 |
void g_system_thread_free (GRealThread *thread);
|
|
Packit |
db3073 |
|
|
Packit |
db3073 |
G_GNUC_INTERNAL
|
|
Packit |
db3073 |
void g_system_thread_exit (void);
|
|
Packit |
db3073 |
G_GNUC_INTERNAL
|
|
Packit |
db3073 |
void g_system_thread_set_name (const gchar *name);
|
|
Packit |
db3073 |
|
|
Packit |
db3073 |
|
|
Packit |
db3073 |
/* gthread.c */
|
|
Packit |
db3073 |
G_GNUC_INTERNAL
|
|
Packit |
db3073 |
GThread * g_thread_new_internal (const gchar *name,
|
|
Packit |
db3073 |
GThreadFunc proxy,
|
|
Packit |
db3073 |
GThreadFunc func,
|
|
Packit |
db3073 |
gpointer data,
|
|
Packit |
db3073 |
gsize stack_size,
|
|
Packit |
db3073 |
GError **error);
|
|
Packit |
db3073 |
|
|
Packit |
db3073 |
G_GNUC_INTERNAL
|
|
Packit |
db3073 |
gpointer g_thread_proxy (gpointer thread);
|
|
Packit |
db3073 |
|
|
Packit |
db3073 |
#endif /* __G_THREADPRIVATE_H__ */
|