Re: GObject thread safety
- From: Dan Winship <danw ximian com>
- To: Tim Janik <timj gtk org>
- Cc: Gtk+ Developers <gtk-devel-list gnome org>
- Subject: Re: GObject thread safety
- Date: 02 Nov 2001 18:51:55 -0500
> > I do think many people will assume that g_object_ref/unref() can be used
> > between threads...
>
> i'd really say then they make the wrong assumptions and didn't get how
> to do threaded programming in glib. what point is there in just reffing
> objects in threads? at some point they're going to use it and then they
> need some global object-entity lock anyways.
No, if you have thread-safe ref/unref you can use per-object (or even
finer-grained) locks.
-- Dan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]