libgomp: Add comment to clarify last_team usage
authorSebastian Huber <sebastian.huber@embedded-brains.de>
Mon, 6 Jul 2015 07:21:48 +0000 (07:21 +0000)
committerSebastian Huber <sh@gcc.gnu.org>
Mon, 6 Jul 2015 07:21:48 +0000 (07:21 +0000)
libgomp/ChangeLog
2015-07-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>

* libgomp.h (gomp_thread_pool): Comment last_team field.

From-SVN: r225444

libgomp/ChangeLog
libgomp/libgomp.h

index e3aed4ca0ab0cb15b2b85c42495b1e71402f722d..b52a29bc2ffb8374c14ff4bf166da99f7138db65 100644 (file)
@@ -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
index 5272f0154b760c3fa34bfb6f26e0c66db5f74188..5ed0f78484a146f52e682660c551f2c0a7e8bcf8 100644 (file)
@@ -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;