CkEntryOptions: example program now uses method chaining
authorRamprasad Venkataraman <ramv@illinois.edu>
Wed, 24 Oct 2012 19:21:15 +0000 (14:21 -0500)
committerRamprasad Venkataraman <ramv@illinois.edu>
Wed, 24 Oct 2012 19:21:15 +0000 (14:21 -0500)
examples/charm++/prio/pgm.C

index 37cd5c7364cccf510b51d121f5e13c341608f8f6..e87fa62a5f82c6f01d6b9aa276e4fc2a17d64a2f 100644 (file)
@@ -17,9 +17,7 @@ struct Main : CBase_Main {
     CProxy_Chare1 c1 = CProxy_Chare1::ckNew();
 
     for (int i = 0; i < numToSend; i += 3) {
-      CkEntryOptions opts;
-      opts.setPriority(-1);
-      c1.prioMarshalling(10, &opts);
+      c1.prioMarshalling(10, & CkEntryOptions().setPriority(-1) );
 
       TestMsg* msg = new (8*sizeof(int)) TestMsg;
       *(int*)CkPriorityPtr(msg) = -2;