/[escript]/trunk/escriptcore/src/Data.cpp
ViewVC logotype

Diff of /trunk/escriptcore/src/Data.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 6468 by jfenwick, Mon Nov 7 08:30:55 2016 UTC revision 6469 by jfenwick, Tue Jan 17 07:45:36 2017 UTC
# Line 786  Data::setToZero() Line 786  Data::setToZero()
786      }      }
787      else      else
788      {      {
789          exclusiveWrite();      // we don't want to call exclusiveWrite() here because
790          m_data->setToZero();          // as soon as we get the copy we'd overwrite it
791            if (isShared())
792            {    
793                    DataAbstract* t=m_data->zeroedCopy();
794                    set_m_data(DataAbstract_ptr(t));
795            }  
796        else
797        {
798            m_data->setToZero();
799        }
800      }      }
801  }  }
802    

Legend:
Removed from v.6468  
changed lines
  Added in v.6469

  ViewVC Help
Powered by ViewVC 1.1.26