• Tim Janik's avatar
    prevent race covered by g_once_init_enter(), by checking for previous · d5c43708
    Tim Janik authored
    Tue Aug 14 02:06:10 2007  Tim Janik  <timj@imendio.com>
    
            * glib/gthread.c (g_once_init_enter_impl): prevent race covered
            by g_once_init_enter(), by checking for previous initializations
            before entering initialisation branch.
    
            * tests/onceinit.c: added multi-thread/multi-initializer stress test
            using unoptimized g_once_init_enter_impl().
    
    
    
    svn path=/trunk/; revision=5701
    d5c43708
onceinit.c 10.1 KB