r133351 - in /branches/gomp-3_0-branch/libgomp:...
jakub@gcc.gnu.org
jakub@gcc.gnu.org
Wed Mar 19 19:47:00 GMT 2008
Author: jakub
Date: Wed Mar 19 19:47:57 2008
New Revision: 133351
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133351
Log:
* libgomp.h (gomp_active_wait_policy): Remove decl.
(gomp_throttled_spin_count_var, gomp_available_cpus,
gomp_managed_threads): New extern decls.
* team.c (gomp_team_start, gomp_team_end): If number of threads
changed, adjust atomically gomp_managed_threads.
* env.c (gomp_active_wait_policy, gomp_block_time_var): Remove.
(gomp_throttled_spin_count_var, gomp_available_cpus,
gomp_managed_threads): New variables.
(parse_millis): Removed.
(parse_spincount): New function.
(parse_wait_policy): Return -1/0/1 instead of setting
gomp_active_wait_policy.
(initialize_env): Call gomp_init_num_threads unconditionally.
Initialize gomp_available_cpus. Call parse_spincount instead
of parse_millis, initialize gomp_{,throttled_}spin_count_var
depending on presence and value of OMP_WAIT_POLICY and
GOMP_SPINCOUNT env vars.
* config/linux/wait.h (do_wait): Use gomp_throttled_spin_count_var
instead of gomp_spin_count_var if gomp_managed_threads >
gomp_available_cpus.
Modified:
branches/gomp-3_0-branch/libgomp/ChangeLog.gomp
branches/gomp-3_0-branch/libgomp/config/linux/wait.h
branches/gomp-3_0-branch/libgomp/env.c
branches/gomp-3_0-branch/libgomp/libgomp.h
branches/gomp-3_0-branch/libgomp/team.c
More information about the Gcc-cvs
mailing list