Changeset 3052


Ignore:
Timestamp:
10/01/15 18:39:01 (9 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-7764

Ready for Test: Yes

Interface Changes: Yes/No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description:

Applied a patch provided by Julian. The patch releases GIL in some (potentially) time-consuming functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ScantableWrapper.h

    r3046 r3052  
    4444                    int type=0)
    4545  {
     46    GILHandler scopedRelease;
    4647    casa::Table::TableType tp = casa::Table::Memory;
    4748    if ( type == 1 ) tp = casa::Table::Plain;
     
    5152  explicit ScantableWrapper(int type=0)
    5253  {
     54    GILHandler scopedRelease;
    5355    casa::Table::TableType tp = casa::Table::Memory;
    5456    if ( type == 1) tp = casa::Table::Plain;
     
    6365  ~ScantableWrapper()
    6466  {
     67    GILHandler scopedRelease;
     68    table_.reset();
    6569  }
    6670
     
    6973
    7074  ScantableWrapper copy() {
     75    GILHandler scopedRelease;
    7176    return ScantableWrapper(new Scantable(*(this->getCP()), false));
    7277  }
     
    184189
    185190  void makePersistent(const std::string& fname)
    186     { table_->makePersistent(fname); }
     191    {
     192        GILHandler scopedRelease;
     193        table_->makePersistent(fname);
     194    }
    187195
    188196  void setSourceType(int stype)
Note: See TracChangeset for help on using the changeset viewer.