MeshStreamer: Modified the "start" function name to the more descriptive "callWhenFin...
authorLukasz Wesolowski <wesolwsk@illinois.edu>
Tue, 1 Nov 2011 20:15:44 +0000 (15:15 -0500)
committerLukasz Wesolowski <wesolwsk@illinois.edu>
Tue, 1 Nov 2011 20:15:44 +0000 (15:15 -0500)
src/libs/ck-libs/MeshStreamer/MeshStreamer.h

index 184d1c3cbbf2fbbee5c541d4c6cad36ce1798b97..2ac485fff3ac06f74c9d3e5ecc30f002c17d78d4 100644 (file)
@@ -87,7 +87,7 @@ private:
     int myColumnIndex_; 
     int myRowIndex_;
 
-    CkCallback   user_cb;
+    CkCallback   userCallback_;
 
     MeshStreamerMessage<dtype> **personalizedBuffers_; 
     MeshStreamerMessage<dtype> **columnBuffers_; 
@@ -121,8 +121,8 @@ public:
     void flushDirect();
 
       // non entry
-    void start(CkCallback &cb) { 
-              user_cb = cb;
+    void callWhenFinished(CkCallback &cb) { 
+              userCallback_ = cb;
               CkStartQD(CkCallback(CkIndex_MeshStreamer<dtype>::flushDirect(), thisProxy));
          }
 };
@@ -485,9 +485,9 @@ void MeshStreamer<dtype>::flushDirect(){
     CkAssert(numDataItemsBuffered_ == 0); 
 #endif
 
-    if (!user_cb.isInvalid()) {
-        CkStartQD(user_cb);
-        user_cb = CkCallback();      // nullify the current callback
+    if (!userCallback_.isInvalid()) {
+        CkStartQD(userCallback_);
+        userCallback_ = CkCallback();      // nullify the current callback
     }
 }