Re: Multiple threads and drawing
- From: klaus triendl <klaus triendl eu>
- To: gtkmm-list gnome org
- Subject: Re: Multiple threads and drawing
- Date: Fri, 20 Jun 2008 17:33:17 +0200
Germán Diago schrieb:
2008/6/18 klaus triendl <klaus triendl eu>:
One question remains though: is sharing a Glib::RefPtr<> between multiple
threads threadsafe, given that only one thread at a time accesses the actual
object? Or asked differently: is Glib::ObjectBase::reference() and
Glib::ObjectBase::unreference() threadsafe?
I was also thinking about the thread safety of Glib::RefPtr<>. I don't
know if it is or not, and I didnt find anything in the documentation.
When you say I should reply everyone, should I reply to both everyone
and gtkmm-list one by one? Thanks for your time.
I investigated a bit:
reference/unreference call g_object_ref/g_object_unref and according to
the GObject reference manual
(http://library.gnome.org/devel/gobject/stable/gobject-memory.html) they
are threadsafe as of Glib 2.8.
Klaus
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]