After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 535969 - GThread;documentation claims that the struct has public members.
GThread;documentation claims that the struct has public members.
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: docs
2.17.x
Other All
: Normal minor
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2008-05-31 20:22 UTC by Stian Skjelstad
Modified: 2011-10-25 01:57 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Stian Skjelstad 2008-05-31 20:22:47 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:
Comment 1 Simon McVittie 2011-10-11 10:09:30 UTC
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?