Re: [Vala] vala friendly atomic pointer

2013-12-20 Thread Maciej Piechotka
On Thu, 2013-12-19 at 17:16 +0200, Tal Hadad wrote: http://www.valadoc.org/#!api=gobject-2.0/GLib.WeakRef This is a simple solution thanks to the good design of GObject. Tal That might not always work, unfortunatly, due to how structs are implemented[1]. Beside - they are implemented

Re: [Vala] vala friendly atomic pointer

2013-12-20 Thread Nor Jaidi Tuah
Thanks for the replies. It seems that WeakRef doesn't help with the granularity: multiple readers will lock out each other (I hope I'm wrong here). Besides, from https://bugzilla.gnome.org/show_bug.cgi?id=703996 it appears that WeakRef is totally broken. As for HazardPointers, according to the

Re: [Vala] vala friendly atomic pointer

2013-12-20 Thread Maciej Piechotka
On Sat, 2013-12-21 at 11:41 +0800, Nor Jaidi Tuah wrote: Thanks for the replies. It seems that WeakRef doesn't help with the granularity: multiple readers will lock out each other (I hope I'm wrong here). Besides, from https://bugzilla.gnome.org/show_bug.cgi?id=703996 it appears that

Re: [Vala] vala friendly atomic pointer

2013-12-20 Thread Maciej Piechotka
On Sat, 2013-12-21 at 07:08 +0100, Maciej Piechotka wrote: On Sat, 2013-12-21 at 11:41 +0800, Nor Jaidi Tuah wrote: Thanks for the replies. It seems that WeakRef doesn't help with the granularity: multiple readers will lock out each other (I hope I'm wrong here). Besides, from

Re: [Vala] vala friendly atomic pointer

2013-12-20 Thread Nor Jaidi Tuah
Thank you for the clarification and the link on HazardPointer. Nice day Nor Jaidi Tuah PRIVILEGED/CONFIDENTIAL information may be contained in this message. If you are neither the addressee (intended recipient) nor an authorised recipient of the addressee, and have received this message