diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-07-06 07:21:48 +0000 |
---|---|---|
committer | Sebastian Huber <sh@gcc.gnu.org> | 2015-07-06 07:21:48 +0000 |
commit | e5210c77a10c7d5e33153a58802cbe13981259d2 (patch) | |
tree | a334e48a12717a3e0004ce68abb4ceb45d473881 /libgomp | |
parent | a7e3f29b79ad64f548892d3d34811ced16007fec (diff) | |
download | gcc-e5210c77a10c7d5e33153a58802cbe13981259d2.tar.gz |
libgomp: Add comment to clarify last_team usage
libgomp/ChangeLog
2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libgomp.h (gomp_thread_pool): Comment last_team field.
From-SVN: r225444
Diffstat (limited to 'libgomp')
-rw-r--r-- | libgomp/ChangeLog | 4 | ||||
-rw-r--r-- | libgomp/libgomp.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index e3aed4ca0ab..b52a29bc2ff 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,7 @@ +2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de> + + * libgomp.h (gomp_thread_pool): Comment last_team field. + 2015-07-02 Uros Bizjak <ubizjak@gmail.com> * testsuite/libgomp.c++/pr66702-1.C: Require diff --git a/libgomp/libgomp.h b/libgomp/libgomp.h index 5272f0154b7..5ed0f78484a 100644 --- a/libgomp/libgomp.h +++ b/libgomp/libgomp.h @@ -458,6 +458,9 @@ struct gomp_thread_pool struct gomp_thread **threads; unsigned threads_size; unsigned threads_used; + /* The last team is used for non-nested teams to delay their destruction to + make sure all the threads in the team move on to the pool's barrier before + the team's barrier is destroyed. */ struct gomp_team *last_team; /* Number of threads running in this contention group. */ unsigned long threads_busy; |