Re: [Fwd: dereferencing void *]
- From: Colomban Wendling <lists ban herbesfolles org>
- To: gtk-app-devel-list gnome org
- Subject: Re: [Fwd: dereferencing void *]
- Date: Mon, 24 Mar 2014 02:43:56 +0100
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 atomic_pointer* ones expect a pointer to the pointer
to atomically set.
Cheers,
Colomban
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]