re-initialize __nodelock in migration constructor.
authorGengbin Zheng <gzheng@illinois.edu>
Thu, 29 Apr 2010 12:49:55 +0000 (07:49 -0500)
committerGengbin Zheng <gzheng@illinois.edu>
Thu, 29 Apr 2010 12:49:55 +0000 (07:49 -0500)
src/ck-core/cknodegroupreduction.h

index 6b7a4b74b4f31a244b90260ac49944a006bb788c..0aad658d396c2fe46c6f24587167847f435f3fbf 100644 (file)
@@ -276,7 +276,8 @@ class NodeGroup : public CkNodeReductionMgr {
   public:
     CmiNodeLock __nodelock;
     NodeGroup();
-    NodeGroup(CkMigrateMessage* m):CkNodeReductionMgr(m) { }
+    NodeGroup(CkMigrateMessage* m):CkNodeReductionMgr(m) { __nodelock=CmiCreateLock(); }
+    
     ~NodeGroup();
     inline const CkGroupID &ckGetGroupID(void) const {return thisgroup;}
     inline CkGroupID CkGetNodeGroupID(void) const {return thisgroup;}