updated
[charm.git] / doc / charm++ / groups.tex
index 005b049fd187dd5bdca4c5ffe4a45c46a82b3ab6..85e62cc2ba67ac6406338f729ae3293b595d5e30 100644 (file)
@@ -72,6 +72,20 @@ CkGroupID groupId = CProxy_G::ckNew(\uw{parameters1});
 CProxy_G groupProxy(groupId);
 \end{alltt}
 
+It is possible to specify the dependence of group creations using
+\uw{CkEntryOptions}, for example, creation of group B on each processor depends
+on group A being created on that processor.
+
+\begin{alltt}
+// create group A
+CkGroupID groupAId = CProxy_GroupA::ckNew(\uw{parameters1});
+
+// create group B which depends on group A being created
+CkEntryOptions opts;
+opts.setGroupDepID(groupAId);
+CkGroupID groupBId = CProxy_GroupB::ckNew(\uw{parameters2});
+\end{alltt}
+
 \subsubsection{Method Invocation on Groups}
 
 Before sending a message to a \index{group}group via an entry