Re: ref/unref in GObjects thread safe?
- From: Aleksander Morgado <gtk-list aleksander es>
- To: Chris Vine <chris cvine freeserve co uk>
- Cc: gtk-list gnome org
- Subject: Re: ref/unref in GObjects thread safe?
- Date: Wed, 8 Apr 2009 11:49:14 +0200
> Are g_object_ref() and g_object_unref() completely thread-safe?
This states that manipulation of the reference count with
g_object_ref() and go_object_unref() is thread-safe as from glib-2.8:
http://library.gnome.org/devel/gobject/stable/gobject-memory.html#gobject-memory-refcount
Oh, thanks for the info.
Although the reference count is thread safe, for concurrent access to
the data members of the same GObject object in different threads, you
would usually need to do your own locking.
Yes, of course.
Thanks,
-Aleksander
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]