Re: [Fwd: dereferencing void *]

2014-03-24 Thread Joël Krähemann
On Mon, 2014-03-24 at 02:43 +0100, Colomban Wendling wrote: Le 24/03/2014 01:36, Joël Krähemann a écrit : [...] The following will compile but is it still correct? g_atomic_pointer_set((returnable_thread-safe_data), NULL); Yes, as the atomic_int*

[Fwd: dereferencing void *]

2014-03-23 Thread Joël Krähemann
https://sourceforge.net/p/ags/code/1515/tree/src/ags/thread/ags_returnable_thread.c ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: [Fwd: dereferencing void *]

2014-03-23 Thread Joël Krähemann
On Mon, 2014-03-24 at 00:20 +0100, Joël Krähemann wrote: https://sourceforge.net/p/ags/code/1515/tree/src/ags/thread/ags_returnable_thread.c ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: [Fwd: dereferencing void *]

2014-03-23 Thread Joël Krähemann
On Mon, 2014-03-24 at 00:22 +0100, Joël Krähemann wrote: On Mon, 2014-03-24 at 00:20 +0100, Joël Krähemann wrote: https://sourceforge.net/p/ags/code/1515/tree/src/ags/thread/ags_returnable_thread.c ___ gtk-app-devel-list mailing list

Re: [Fwd: dereferencing void *]

2014-03-23 Thread David Marceau
On 03/23/2014 08:36 PM, Joël Krähemann wrote: The following will compile but is it still correct? g_atomic_pointer_set((returnable_thread-safe_data), NULL); http://developer.gimp.org/api/2.0/glib/glib-Basic-Types.html#gpointer typedef void* gpointer;

Re: [Fwd: dereferencing void *]

2014-03-23 Thread Colomban Wendling
Le 24/03/2014 01:36, Joël Krähemann a écrit : [...] The following will compile but is it still correct? g_atomic_pointer_set((returnable_thread-safe_data), NULL); Yes, as the atomic_int* functions expect a pointer to the integer to atomically set, the

Re: [Fwd: dereferencing void *]

2014-03-23 Thread Colomban Wendling
Le 24/03/2014 02:11, David Marceau a écrit : On 03/23/2014 08:36 PM, Joël Krähemann wrote: The following will compile but is it still correct? g_atomic_pointer_set((returnable_thread-safe_data), NULL);