Bug fix: sometimes an assert was triggered if pthread_barrier_destroy() was called after the last pthread_barrier_wait() finished and before the post-pthread_barrier_wait() client request finished.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7654 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/exp-drd/drd_clientobj.h b/exp-drd/drd_clientobj.h
index 3a91ac7..9302b2a 100644
--- a/exp-drd/drd_clientobj.h
+++ b/exp-drd/drd_clientobj.h
@@ -92,6 +92,7 @@
   Addr    a1;
   ObjType type;
   void    (*cleanup)(union drd_clientobj*);
+  BarrierT barrier_type;      // pthread_barrier or gomp_barrier.
   Word     count;             // Participant count in a barrier wait.
   Word     pre_iteration;     // pthread_barrier_wait() call count modulo two.
   Word     post_iteration;    // pthread_barrier_wait() call count modulo two.