Re: [Fwd: dereferencing void *]



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]