Blame glib/gthreadprivate.h

Packit ae235b
/* GLIB - Library of useful routines for C programming
Packit ae235b
 *
Packit ae235b
 * gthreadprivate.h - GLib internal thread system related declarations.
Packit ae235b
 *
Packit ae235b
 *  Copyright (C) 2003 Sebastian Wilhelmi
Packit ae235b
 *
Packit ae235b
 * This library is free software; you can redistribute it and/or
Packit ae235b
 * modify it under the terms of the GNU Lesser General Public
Packit ae235b
 * License as published by the Free Software Foundation; either
Packit ae235b
 * version 2.1 of the License, or (at your option) any later version.
Packit ae235b
 *
Packit ae235b
 * This library is distributed in the hope that it will be useful,
Packit ae235b
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit ae235b
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit ae235b
 * Lesser General Public License for more details.
Packit ae235b
 *
Packit ae235b
 * You should have received a copy of the GNU Lesser General Public License
Packit ae235b
 * along with this library; if not, see <http://www.gnu.org/licenses/>.
Packit ae235b
 */
Packit ae235b
Packit ae235b
#ifndef __G_THREADPRIVATE_H__
Packit ae235b
#define __G_THREADPRIVATE_H__
Packit ae235b
Packit ae235b
#include "deprecated/gthread.h"
Packit ae235b
Packit ae235b
typedef struct _GRealThread GRealThread;
Packit ae235b
struct  _GRealThread
Packit ae235b
{
Packit ae235b
  GThread thread;
Packit ae235b
Packit ae235b
  gint ref_count;
Packit ae235b
  gboolean ours;
Packit ae235b
  gchar *name;
Packit ae235b
  gpointer retval;
Packit ae235b
};
Packit ae235b
Packit ae235b
/* system thread implementation (gthread-posix.c, gthread-win32.c) */
Packit ae235b
void            g_system_thread_wait            (GRealThread  *thread);
Packit ae235b
Packit ae235b
GRealThread *   g_system_thread_new             (GThreadFunc   func,
Packit ae235b
                                                 gulong        stack_size,
Packit ae235b
                                                 GError      **error);
Packit ae235b
void            g_system_thread_free            (GRealThread  *thread);
Packit ae235b
Packit ae235b
void            g_system_thread_exit            (void);
Packit ae235b
void            g_system_thread_set_name        (const gchar  *name);
Packit ae235b
Packit ae235b
Packit ae235b
/* gthread.c */
Packit ae235b
GThread *       g_thread_new_internal           (const gchar  *name,
Packit ae235b
                                                 GThreadFunc   proxy,
Packit ae235b
                                                 GThreadFunc   func,
Packit ae235b
                                                 gpointer      data,
Packit ae235b
                                                 gsize         stack_size,
Packit ae235b
                                                 GError      **error);
Packit ae235b
Packit ae235b
gpointer        g_thread_proxy                  (gpointer      thread);
Packit ae235b
Packit ae235b
#endif /* __G_THREADPRIVATE_H__ */