mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-09-20 17:26:14 +02:00
tidy up gthreadprivate.h
Remove some unused includes, too.
This commit is contained in:
parent
332f74a2fc
commit
b1cc2579c1
@ -32,6 +32,7 @@
|
|||||||
#include "gthread.h"
|
#include "gthread.h"
|
||||||
#include "gthreadprivate.h"
|
#include "gthreadprivate.h"
|
||||||
#include "deprecated/gthread.h"
|
#include "deprecated/gthread.h"
|
||||||
|
#include "garray.h"
|
||||||
|
|
||||||
#include "gutils.h"
|
#include "gutils.h"
|
||||||
|
|
||||||
|
@ -24,13 +24,19 @@
|
|||||||
#define __G_THREADPRIVATE_H__
|
#define __G_THREADPRIVATE_H__
|
||||||
|
|
||||||
#include "deprecated/gthread.h"
|
#include "deprecated/gthread.h"
|
||||||
#include "garray.h"
|
|
||||||
#include "gslist.h"
|
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
|
||||||
|
|
||||||
typedef struct _GRealThread GRealThread;
|
typedef struct _GRealThread GRealThread;
|
||||||
|
struct _GRealThread
|
||||||
|
{
|
||||||
|
GThread thread;
|
||||||
|
|
||||||
|
gint ref_count;
|
||||||
|
gboolean ours;
|
||||||
|
const gchar *name;
|
||||||
|
gpointer retval;
|
||||||
|
};
|
||||||
|
|
||||||
|
/* system thread implementation (gthread-posix.c, gthread-win32.c) */
|
||||||
G_GNUC_INTERNAL
|
G_GNUC_INTERNAL
|
||||||
void g_system_thread_wait (GRealThread *thread);
|
void g_system_thread_wait (GRealThread *thread);
|
||||||
|
|
||||||
@ -41,9 +47,13 @@ GRealThread * g_system_thread_new (GThreadFunc func,
|
|||||||
G_GNUC_INTERNAL
|
G_GNUC_INTERNAL
|
||||||
void g_system_thread_free (GRealThread *thread);
|
void g_system_thread_free (GRealThread *thread);
|
||||||
|
|
||||||
G_GNUC_INTERNAL void g_system_thread_exit (void);
|
G_GNUC_INTERNAL
|
||||||
G_GNUC_INTERNAL void g_system_thread_set_name (const gchar *name);
|
void g_system_thread_exit (void);
|
||||||
|
G_GNUC_INTERNAL
|
||||||
|
void g_system_thread_set_name (const gchar *name);
|
||||||
|
|
||||||
|
|
||||||
|
/* gthread.c */
|
||||||
G_GNUC_INTERNAL
|
G_GNUC_INTERNAL
|
||||||
GThread * g_thread_new_internal (const gchar *name,
|
GThread * g_thread_new_internal (const gchar *name,
|
||||||
GThreadFunc proxy,
|
GThreadFunc proxy,
|
||||||
@ -55,20 +65,4 @@ GThread * g_thread_new_internal (const gchar *name,
|
|||||||
G_GNUC_INTERNAL
|
G_GNUC_INTERNAL
|
||||||
gpointer g_thread_proxy (gpointer thread);
|
gpointer g_thread_proxy (gpointer thread);
|
||||||
|
|
||||||
struct _GRealThread
|
|
||||||
{
|
|
||||||
GThread thread;
|
|
||||||
|
|
||||||
gint ref_count;
|
|
||||||
gboolean ours;
|
|
||||||
const gchar *name;
|
|
||||||
gpointer retval;
|
|
||||||
};
|
|
||||||
|
|
||||||
#ifdef G_OS_WIN32
|
|
||||||
G_GNUC_INTERNAL void g_thread_DllMain (void);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
G_END_DECLS
|
|
||||||
|
|
||||||
#endif /* __G_THREADPRIVATE_H__ */
|
#endif /* __G_THREADPRIVATE_H__ */
|
||||||
|
Loading…
Reference in New Issue
Block a user