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 688704 - Add boxed GType for GThread
Add boxed GType for GThread
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gobject
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2012-11-20 07:53 UTC by Sebastian Dröge (slomo)
Modified: 2012-11-20 14:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add boxed GType for GThread (2.67 KB, patch)
2012-11-20 07:59 UTC, Sebastian Dröge (slomo)
committed Details | Review

Description Sebastian Dröge (slomo) 2012-11-20 07:53:19 UTC
Hi,

would be great if a boxed GType for GThread could be added to GObject. Currently we have our own type for this in GStreamer (GstGThread) but having one for GThread directly would make the life much easier for bindings.

Patch following.
Comment 1 Sebastian Dröge (slomo) 2012-11-20 07:59:06 UTC
Created attachment 229443 [details] [review]
Add boxed GType for GThread
Comment 2 Colin Walters 2012-11-20 13:52:32 UTC
Review of attachment 229443 [details] [review]:

One comment, otherwise fine to commit.

::: gobject/glib-types.h
@@ +251,3 @@
+ * The #GType for a boxed type holding a #GThread.
+ *
+ * Since: 2.32

2.36
Comment 3 Sebastian Dröge (slomo) 2012-11-20 14:03:51 UTC
commit 46a92a760b8fc83015ec5016cd0bc8b3ab343325
Author: Sebastian Dröge <sebastian.droege@collabora.co.uk>
Date:   Tue Nov 20 08:58:30 2012 +0100

    Add boxed GType for GThread
    
    https://bugzilla.gnome.org/show_bug.cgi?id=688704
Comment 4 Emmanuele Bassi (:ebassi) 2012-11-20 14:54:02 UTC
Sebastian, could you please point me to a use case of passing GThread pointers around inside GStreamer?