git: pthread: Implement pthread_attr_{get,set}affinity_np

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Sun Jan 15 03:28:24 PST 2017


commit 3ae362f2fd40a49b17fda7454bd8c25ca54f9902
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Sun Jan 15 16:53:39 2017 +0800

    pthread: Implement pthread_attr_{get,set}affinity_np

Summary of changes:
 include/pthread_np.h                               |  4 +-
 lib/libc/gen/Symbol.map                            |  4 ++
 lib/libc/gen/_pthread_stubs.c                      |  2 +
 lib/libc/include/namespace.h                       |  2 +
 lib/libc/include/un-namespace.h                    |  2 +
 lib/libc_r/uthread/Makefile.inc                    |  2 +
 ...sigprocmask.c => uthread_attr_getaffinity_np.c} | 32 +++++++---
 ...thread_self.c => uthread_attr_setaffinity_np.c} | 18 +++---
 lib/libpthread/Makefile                            |  2 +
 ...affinity_np.3 => pthread_attr_setaffinity_np.3} | 73 ++++++++--------------
 lib/libthread_xu/pthread.map                       |  4 ++
 lib/libthread_xu/thread/thr_attr.c                 | 65 +++++++++++++++++++
 lib/libthread_xu/thread/thr_create.c               |  5 +-
 lib/libthread_xu/thread/thr_private.h              |  3 +
 sys/sys/param.h                                    |  1 +
 15 files changed, 151 insertions(+), 68 deletions(-)
 copy lib/libc_r/uthread/{uthread_sigprocmask.c => uthread_attr_getaffinity_np.c} (76%)
 copy lib/libc_r/uthread/{uthread_self.c => uthread_attr_setaffinity_np.c} (84%)
 copy lib/libpthread/{pthread_setaffinity_np.3 => pthread_attr_setaffinity_np.3} (68%)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3ae362f2fd40a49b17fda7454bd8c25ca54f9902


-- 
DragonFly BSD source repository


More information about the Commits mailing list