Changeset 2755 in Sophya for trunk/SophyaPI/PIext/basexecut.cc


Ignore:
Timestamp:
May 23, 2005, 6:33:02 PM (20 years ago)
Author:
ansari
Message:

1/ Correction bug trace des lignes ds PINTuple
2/ Ajout methode IsThreadable() (declaration conformite thread separe pour certaines commandes) ds baseexecut.h .cc (plot2d plot3d ...) , ds pawexecut.cc (n/plot ...) et ds cxxexecutor.h .cc (c++exec c++execfrf ...)
3/ Ajout de ZMutex (et ZSync) pour la gestion des commandes threadable - ds les
executeurs et ds servnobjm.h .cc
4/ bug d'execution en thread identifie et corrige ds nobjmgr.h .cc (ajout des
methodes GetObj_P() GetObjAdapter_P() et ReadObj_P()
5/ Ajout de l'appel a ZSync::NOp() pour eviter les warnings 'unused variable zs ...'

Reza 23 Mai 2005

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/basexecut.cc

    r2718 r2755  
    5353/* Macro pour tester si flag normalized coordinate est present */
    5454#define _CkBoolNC_(_jk_) ((tokens.size()>_jk_) && (tokens[_jk_] == "true")) ? true : false;
    55  
     55
     56
    5657/* --Methode-- */
    5758int PIABaseExecutor::Execute(string& kw, vector<string>& tokens, string& toks)
     
    11251126
    11261127return(0);
     1128}
     1129
     1130/* --Methode-- */
     1131bool PIABaseExecutor::IsThreadable(string const & keyw)
     1132{
     1133  if ( (keyw == "fillvec") || (keyw == "fillmtx") ||
     1134       (keyw == "fillnt") || (keyw == "ntloop") )  return true;
     1135  else if (keyw.substr(0,4) == "func")  return true;
     1136  else {
     1137    string skw = keyw.substr(0,5);
     1138    if ( (skw == "plot2") || (skw == "plot3") || (skw == "projh") )  return true;
     1139  }
     1140  return false;
    11271141}
    11281142
Note: See TracChangeset for help on using the changeset viewer.