more atomic ops pointer cast fixes. this time it'll work with atomic op

Fri Jul 13 01:01:46 2007  Tim Janik  <timj@imendio.com>

        * glib/gthread.[hc]: more atomic ops pointer cast fixes. this time it'll
        work with atomic op macros *and* atomic op functions.



svn path=/trunk/; revision=5638
This commit is contained in:
Tim Janik
2007-07-12 23:03:06 +00:00
committed by Tim Janik
parent b1e888b60e
commit 95e5ffb695
3 changed files with 9 additions and 4 deletions

View File

@@ -332,7 +332,7 @@ void g_once_init_leave (volatile gsize *value_location,
G_INLINE_FUNC gboolean
g_once_init_enter (volatile gsize *value_location)
{
if G_LIKELY (g_atomic_pointer_get ((void*) value_location) !=0)
if G_LIKELY (g_atomic_pointer_get ((void**) value_location) !=0)
return FALSE;
else
return g_once_init_enter_impl (value_location);