Changeset 2486 in Sophya for trunk/SophyaPI/PIext/piacmd.h


Ignore:
Timestamp:
Dec 26, 2003, 12:17:41 PM (22 years ago)
Author:
ansari
Message:

Debut d'implementation piapp multi-thread - (avec des pb lors de l'execution de demo.pic) Reza 26 Dec 2003

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/piacmd.h

    r2474 r2486  
    1111#include <string>
    1212#include <vector>
     13#include <stack>
     14#include "zthread.h"
    1315
    1416#include "dlftypes.h"
     
    2931
    3032
    31 class PIACmd : public Commander  {
     33class PIACmd : public Commander, public ZThread  {
    3234public:
    3335  //  static PIACmd*    GetInterpreter();
     
    3638  virtual               ~PIACmd();
    3739
     40  // Thread execution  <ZThread>
     41  virtual void          run();
     42  void                  AddInputLine(string const & line);
     43  void                  StopThread();
     44  inline  bool          isRunning(int& ninp)
     45    { ninp = inputlines.size(); return fg_threxe; }
     46  // ---- FIN ---- Thread execution  <ZThread>
    3847
    3948  void                   ShowHelpWindow();
     
    7786  CxxExecWind* cxxexwin;
    7887  CxxOptionWind* cxxoptwin;
     88
     89// Stack d'entree et controle de thread
     90  stack<string> inputlines;
     91  bool fg_thrstop;
     92  ZMutex mutx_inps;
     93  bool fg_threxe;
     94
    7995};
    8096
Note: See TracChangeset for help on using the changeset viewer.