GNOME Bugzilla – Bug 535969
GThread;documentation claims that the struct has public members.
Last modified: 2011-10-25 01:57:38 UTC
Documentation Section: http://library.gnome.org/devel/glib/unstable/glib-Threads.html#GThread typedef struct { } GThread; The GThread struct represents a running thread. It has three public read-only members, but the underlying struct is bigger, so you must not copy this struct. Correct version: typedef struct { gpointer data; gboolean joinable; GThreadPriority priority; } The GThread struct represents a running thread. It has three public read-only members, but the underlying struct is bigger, so you must not copy this struct. Other information:
In master, the fields are no longer considered public: * The #GThread struct represents a running thread. This struct * is returned by g_thread_new() or g_thread_new_full(). You can * obtain the #GThread struct representing the current thead by * calling g_thread_self(). * * The structure is opaque -- none of its fields may be directly * accessed. and they aren't visible to library users at all if G_DISABLE_DEPRECATED is defined. So I think this bug can be closed now?