OSDN Git Service

* libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Apr 2007 15:44:20 +0000 (15:44 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Apr 2007 15:44:20 +0000 (15:44 +0000)
commit8f697de691faf4ff96d6bef3c26760a3d8436404
treeac821b38fafbfdcd8c9ded3ac49ca98b9174d998
parentf5b1f90b7b0020267c34487a1ab6da238c3712b3
* libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
decls.
(gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
* env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
(parse_affinity): New function.
(initialize_env): Call it and gomp_init_affinity.
* team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
create new pthread_attr_t and call gomp_init_thread_affinity
on it for each thread before passing the attribute to pthread_create.
* config/linux/affinity.c: New file.
* config/posix/affinity.c: New file.
* configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
* configure: Rebuilt.
* config.h.in: Rebuilt.
* Makefile.am (libgomp_la_SOURCES): Add affinity.c.
* Makefile.in: Rebuilt.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123494 138bc75d-0d04-0410-961f-82ee72b054a4
libgomp/ChangeLog
libgomp/Makefile.am
libgomp/Makefile.in
libgomp/config.h.in
libgomp/config/linux/affinity.c [new file with mode: 0644]
libgomp/config/posix/affinity.c [new file with mode: 0644]
libgomp/configure
libgomp/configure.ac
libgomp/env.c
libgomp/libgomp.h
libgomp/team.c