|
From: Felipe C. <fel...@gm...> - 2010-03-01 15:30:29
|
On Sun, Feb 28, 2010 at 10:24 PM, Rob Clark <ro...@ti...> 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 |