make struct _GThread private

Hide the definition of struct _GThread in gthreadprivate.h for now.

This is possibly an API break -- although the structure contents were
undocumented and it was not safe to access them in a meaningful way,
someone may have tried to do it anyway.  We'll leave it here for a while
to see if it causes any problems.

Avoid merging its contents with GRealThread for now, just incase we need
to expose it again.
This commit is contained in:
Ryan Lortie 2011-10-13 01:24:16 -04:00
parent b1cc2579c1
commit d904612100
2 changed files with 9 additions and 9 deletions

View File

@ -43,15 +43,6 @@ typedef enum
G_THREAD_PRIORITY_URGENT
} GThreadPriority;
struct _GThread
{
/*< private >*/
GThreadFunc func;
gpointer data;
gboolean joinable;
GThreadPriority priority;
};
typedef struct _GThreadFunctions GThreadFunctions;
struct _GThreadFunctions
{

View File

@ -25,6 +25,15 @@
#include "deprecated/gthread.h"
struct _GThread
{
/*< private >*/
GThreadFunc func;
gpointer data;
gboolean joinable;
GThreadPriority priority;
};
typedef struct _GRealThread GRealThread;
struct _GRealThread
{