Changeset 2671 in Sophya for trunk/SophyaLib/SysTools/commander.h


Ignore:
Timestamp:
Apr 18, 2005, 5:34:31 PM (20 years ago)
Author:
ansari
Message:

Modifs pour introduire la possibilite d'execution multi-thread de commandes ds l'interpreteur Commander - Reza 18/4/2005

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/SysTools/commander.h

    r2598 r2671  
    5959class CommanderBloc;    // Bloc de type foreach / for de l'interpreteur Commander
    6060class CommanderScript;  // Script de commandes defini ds l'interpreteur Commander
    61 
    62 //! A simple command interpreter with c-shell like syntax with dynamic load capability.
     61class CommandExeThr;    // Thread d'execution de commande
     62
     63//! A simple command interpreter with c-shell like syntax and  dynamic load capability.
    6364
    6465class Commander : public CmdInterpreter  {
     
    8586
    8687  virtual int           Interpret(string& line);
     88  virtual void          StopExecution();
    8789
    8890  virtual int           ExecuteCommand(string& keyw, vector<string>& args, string& toks);
     
    162164  void          PopStack(bool psta=true);
    163165
     166  //   Gestion des threads d'execution de commandes
     167  void          ListThreads();
     168  void          CancelThr(uint_8 thrid);
     169  void          CleanThrList();
     170  void          WaitThreads();
     171
     172// ------ Attributs et variables ------
    164173  CmdInterpreter* curcmdi;
    165174
     
    180189  CmdExmap helpexmap;                                  // Pour les helps sans commande
    181190
     191// Pour garder la liste des threads d'execution de commande
     192  list<CommandExeThr *> CmdThrExeList;
     193  uint_8 ThrId;
     194
    182195// Pour garder la liste des modules
    183196  typedef map<string, PDynLinkMgr* , less<string> > Modmap;
Note: See TracChangeset for help on using the changeset viewer.