summaryrefslogtreecommitdiffstats
path: root/openmp/runtime
diff options
context:
space:
mode:
authorJonathan Peyton <jonathan.l.peyton@intel.com>2016-03-29 21:08:29 +0000
committerJonathan Peyton <jonathan.l.peyton@intel.com>2016-03-29 21:08:29 +0000
commit4cfe93c599df862cb9c8f982374892ea05d65260 (patch)
tree50ddcda3f849a231cb1daff71a7c8a828db1f530 /openmp/runtime
parent319d7304c341293f46c1c664183547d12be4e2ae (diff)
downloadbcm5719-llvm-4cfe93c599df862cb9c8f982374892ea05d65260.tar.gz
bcm5719-llvm-4cfe93c599df862cb9c8f982374892ea05d65260.zip
Fix comment in kmp_wait_release.h
Removed reference to "ref ct" in a comment, as ref_ct no longer exists. Also moved the comment to where the task_team is about to be tested if NULL. llvm-svn: 264786
Diffstat (limited to 'openmp/runtime')
-rw-r--r--openmp/runtime/src/kmp_wait_release.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/openmp/runtime/src/kmp_wait_release.h b/openmp/runtime/src/kmp_wait_release.h
index 0302607a9df..bed40170e03 100644
--- a/openmp/runtime/src/kmp_wait_release.h
+++ b/openmp/runtime/src/kmp_wait_release.h
@@ -167,17 +167,15 @@ __kmp_wait_template(kmp_info_t *this_thr, C *flag, int final_spin
// Main wait spin loop
while (flag->notdone_check()) {
int in_pool;
-
- /* If the task team is NULL, it means one of things:
- 1) A newly-created thread is first being released by __kmp_fork_barrier(), and
- its task team has not been set up yet.
- 2) All tasks have been executed to completion, this thread has decremented the task
- team's ref ct and possibly deallocated it, and should no longer reference it.
- 3) Tasking is off for this region. This could be because we are in a serialized region
- (perhaps the outer one), or else tasking was manually disabled (KMP_TASKING=0). */
kmp_task_team_t * task_team = NULL;
if (__kmp_tasking_mode != tskm_immediate_exec) {
task_team = this_thr->th.th_task_team;
+ /* If the thread's task team pointer is NULL, it means one of 3 things:
+ 1) A newly-created thread is first being released by __kmp_fork_barrier(), and
+ its task team has not been set up yet.
+ 2) All tasks have been executed to completion.
+ 3) Tasking is off for this region. This could be because we are in a serialized region
+ (perhaps the outer one), or else tasking was manually disabled (KMP_TASKING=0). */
if (task_team != NULL) {
if (TCR_SYNC_4(task_team->tt.tt_active)) {
if (KMP_TASKING_ENABLED(task_team))
OpenPOWER on IntegriCloud