On Sun, Feb 28, 2010 at 10:24 PM, Rob Clark <rob at ti.com> wrote: > Reading and writing an int is not sufficient synchronization without barrier instructions. Using g_once_init_enter() (which uses g_atomic_pointer_get()) provides SMP safety. Looks fine to me. -- Felipe Contreras