git: pthread: Fix simple hello world c++ statically linked use cases.

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Sat Nov 2 15:47:56 PDT 2019


commit 8b03c2a2d6beb779c61e77703adb47a4a796ffaa
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Sat Nov 2 12:39:06 2019 +0200

    pthread: Fix simple hello world c++ statically linked use cases.
    
     Can happen if locale setup is called before pthread_create() and c++
     program is linked with -static -pthread.  Check initialization status
     in mutex and once related calls.

Summary of changes:
 lib/libthread_xu/thread/thr_mutex.c | 4 ++++
 lib/libthread_xu/thread/thr_once.c  | 2 ++
 2 files changed, 6 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8b03c2a2d6beb779c61e77703adb47a4a796ffaa


-- 
DragonFly BSD source repository



More information about the Commits mailing list