os type specific & glib atomic operation