diff options
author | John David Anglin <dave.anglin@nrc-cnrc.gc.ca> | 2008-06-15 21:41:26 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2008-06-15 21:41:26 +0000 |
commit | 9c4e59e00cf3bf6a1ce6560043c30c881a50aaa7 (patch) | |
tree | f5f02a9f51b47060fb565bb67ec28d225f78e0f9 /libgomp/env.c | |
parent | 76b33d8fc1826a1619f9f25e0ac8a2fe66a594ca (diff) | |
download | gcc-9c4e59e00cf3bf6a1ce6560043c30c881a50aaa7.zip gcc-9c4e59e00cf3bf6a1ce6560043c30c881a50aaa7.tar.gz gcc-9c4e59e00cf3bf6a1ce6560043c30c881a50aaa7.tar.bz2 |
env.c (initialize_env): Always initialize gomp_remaining_threads_lock mutex when...
* env.c (initialize_env): Always initialize gomp_remaining_threads_lock
mutex when HAVE_SYNC_BUILTINS isn't defined.
From-SVN: r136827
Diffstat (limited to 'libgomp/env.c')
-rw-r--r-- | libgomp/env.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libgomp/env.c b/libgomp/env.c index 50872c2..b1349c8 100644 --- a/libgomp/env.c +++ b/libgomp/env.c @@ -487,12 +487,10 @@ initialize_env (void) parse_unsigned_long ("OMP_MAX_ACTIVE_LEVELS", &gomp_max_active_levels_var); parse_unsigned_long ("OMP_THREAD_LIMIT", &gomp_thread_limit_var); if (gomp_thread_limit_var != ULONG_MAX) - { - gomp_remaining_threads_count = gomp_thread_limit_var - 1; + gomp_remaining_threads_count = gomp_thread_limit_var - 1; #ifndef HAVE_SYNC_BUILTINS - gomp_mutex_init (&gomp_remaining_threads_lock); + gomp_mutex_init (&gomp_remaining_threads_lock); #endif - } gomp_init_num_threads (); gomp_available_cpus = gomp_global_icv.nthreads_var; if (!parse_unsigned_long ("OMP_NUM_THREADS", &gomp_global_icv.nthreads_var)) |