Is GObject threadsafe?!
- From: "Tomasz Jankowski" <tomcioj gmail com>
- To: gtk-app-devel-list gnome org
- Subject: Is GObject threadsafe?!
- Date: Wed, 4 Jul 2007 21:34:23 +0200
Hello again!
Maybe you will ban me on this mailing list for sending many mails about
similar topic - I'm desperate ;P I only want to know, if GObject system is
thread safe. It's very important to me, to know if I can safety use
g_object_set and g_object_get from many threads without providing my own
thread protection. I found something on web but it wasn't clear for me.
http://mail.gnome.org/archives/gtk-devel-list/2001-November/msg00075.html
We can read there:
> GObject isn't thread-unsafe, it just uses the normal glib locking convention,
> of the user having to pay attention to lock hist structs before using them.
> that can't be done for the type system of course, so we do fine grained locking
> there.
It's quite involved sentence. As I understand Tim Janik, said, that GObject
type system is thread safe. Help, I'm really confused :|
--
Cya!
Tom
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]