git: pthread: Init libthread_xu also in pthread_key_create()

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Sat Sep 24 00:45:54 PDT 2016


commit a886e3839711365c70d7ee3ffb90a6f6ef7ed11d
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Fri Sep 16 07:42:37 2016 +0300

    pthread: Init libthread_xu also in pthread_key_create()
    
    Previously libtreahd_xu was only prepared in pthread_create()
    but there are cases where keys need to be initialized before.
    
    Solves runtime of statically linked gfortran programs with -pthread
    (libgfortran calls newlocale() when setting up the environment).

Summary of changes:
 lib/libthread_xu/thread/thr_spec.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a886e3839711365c70d7ee3ffb90a6f6ef7ed11d


-- 
DragonFly BSD source repository



More information about the Commits mailing list