diff options
author | Jakub Jelinek <jakub@redhat.com> | 2007-04-04 17:44:20 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2007-04-04 17:44:20 +0200 |
commit | a0884cf09ee0b132930c5ad0f16736f9681f3b07 (patch) | |
tree | ac821b38fafbfdcd8c9ded3ac49ca98b9174d998 /libgomp/config.h.in | |
parent | 6acd883864e3cff5895962772cca141bbbf3d2ad (diff) | |
download | gcc-a0884cf09ee0b132930c5ad0f16736f9681f3b07.zip gcc-a0884cf09ee0b132930c5ad0f16736f9681f3b07.tar.gz gcc-a0884cf09ee0b132930c5ad0f16736f9681f3b07.tar.bz2 |
libgomp.h (gomp_cpu_affinity, [...]): New extern decls.
* 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.
From-SVN: r123494
Diffstat (limited to 'libgomp/config.h.in')
-rw-r--r-- | libgomp/config.h.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libgomp/config.h.in b/libgomp/config.h.in index 0f33b00..13cdf1b 100644 --- a/libgomp/config.h.in +++ b/libgomp/config.h.in @@ -24,6 +24,9 @@ /* Define to 1 if you have the <memory.h> header file. */ #undef HAVE_MEMORY_H +/* Define if pthread_{,attr_}{g,s}etaffinity_np is supported. */ +#undef HAVE_PTHREAD_AFFINITY_NP + /* Define to 1 if you have the <semaphore.h> header file. */ #undef HAVE_SEMAPHORE_H |