git: pthread: Add pthread_getthreadid_np() function, bump __DragonFly_version.

Imre Vadasz ivadasz at crater.dragonflybsd.org
Sat Jul 15 15:33:46 PDT 2017


commit c0f25c26521a4a85f70aa95a94bbc323503ea2ac
Author: Imre Vadász <imre at vdsz.com>
Date:   Sat Jul 15 11:13:36 2017 +0200

    pthread: Add pthread_getthreadid_np() function, bump __DragonFly_version.
    
    Using pthread_getthreadid_np() can directly use the thread-ID value that is
    already cached in the pthread_t struct.
    
    Partly Taken-From: FreeBSD

Summary of changes:
 include/pthread_np.h                               |  1 +
 lib/libc/gen/Symbol.map                            |  6 ++++
 lib/libc/gen/_pthread_stubs.c                      |  1 +
 lib/libc/include/namespace.h                       |  1 +
 lib/libc/include/un-namespace.h                    |  1 +
 lib/libc_r/uthread/Makefile.inc                    |  1 +
 .../uthread/uthread_getthreadid_np.c}              | 22 ++++++++-----
 lib/libpthread/Makefile                            |  1 +
 ...read_set_name_np.3 => pthread_getthreadid_np.3} | 38 ++++++++++++----------
 lib/libthread_xu/pthread.map                       |  6 ++++
 lib/libthread_xu/thread/Makefile.inc               |  1 +
 .../thread/{thr_yield.c => thr_getthreadid_np.c}   | 16 ++++-----
 lib/libthread_xu/thread/thr_init.c                 |  2 ++
 sys/sys/param.h                                    |  3 +-
 14 files changed, 64 insertions(+), 36 deletions(-)
 copy lib/{libc/citrus/citrus_lock.h => libc_r/uthread/uthread_getthreadid_np.c} (77%)
 copy lib/libpthread/{pthread_set_name_np.3 => pthread_getthreadid_np.3} (72%)
 copy lib/libthread_xu/thread/{thr_yield.c => thr_getthreadid_np.c} (79%)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list