Ignore:
Timestamp:
08/07/15 17:55:07 (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:


Release GIL in some time-consuming functions. Currently the following functions releases GIL:


  • MSFiller::fill
  • MSWriter::write
  • Scantable::applyBaselineTable
  • Scantable::subBaseline
  • CalibrationManager::calibrate
  • CalibrationManager::apply
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ScantableWrapper.h

    r2888 r3046  
    2424#include "STFit.h"
    2525#include "STFitEntry.h"
     26#include "GILHandler.h"
    2627
    2728namespace asap {
     
    291292
    292293  std::vector<std::string> applyBaselineTable(const std::string& bltable, const bool returnfitresult, const std::string& outbltable, const bool outbltableexists, const bool overwrite)
    293   { return table_->applyBaselineTable(bltable, returnfitresult, outbltable, outbltableexists, overwrite); }
     294  {
     295    GILHandler scopedRelease;
     296    return table_->applyBaselineTable(bltable, returnfitresult, outbltable, outbltableexists, overwrite);
     297  }
    294298  std::vector<std::string> subBaseline(const std::vector<std::string>& blinfo, const bool returnfitresult, const std::string& outbltable, const bool outbltableexists, const bool overwrite)
    295   { return table_->subBaseline(blinfo, returnfitresult, outbltable, outbltableexists, overwrite); }
     299  {
     300    GILHandler scopedRelease;
     301    return table_->subBaseline(blinfo, returnfitresult, outbltable, outbltableexists, overwrite);
     302  }
    296303  void polyBaseline(const std::vector<bool>& mask, int order, float clipthresh, int clipniter, bool getresidual=true, const std::string& showprogress="true,1000", const bool outlog=false, const std::string& blfile="", const std::string& bltable="")
    297304  { table_->polyBaseline(mask, order, clipthresh, clipniter, getresidual, showprogress, outlog, blfile, bltable); }
Note: See TracChangeset for help on using the changeset viewer.