Changeset 2491 in Sophya for trunk/SophyaPI/PIext/servnobjm.h


Ignore:
Timestamp:
Jan 4, 2004, 8:02:44 PM (22 years ago)
Author:
ansari
Message:

Suite des modifs pour piapp multi-threads
1) Ajout Mutex de synchronisation ds ls classe NamedObjMgr
2) Suite controle de gestion d'appel aux methodes de PIStdImgApp depuis
la classe elle-meme, a travers le NamedObjMgr
3) Modification de la boucle d'evenements, avec un thread de reveil
periodique

Reza, 4 Janvier 2004

File:
1 edited

Legend:

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

    r2419 r2491  
    1313#include <functional>
    1414
     15#include "nobjmgr.h"
    1516#include "pdlmgr.h"
    1617#include "dlftypes.h"
     
    3132#endif
    3233
    33 class NamedObjMgr;
    3434class PIStdImgApp;
    3535class NObjMgrAdapter;
     
    3737class Services2NObjMgr {
    3838public:
    39                 Services2NObjMgr(NamedObjMgr* omg, string& tmpdir);
     39                Services2NObjMgr(string& tmpdir);
    4040  virtual       ~Services2NObjMgr();
    4141
     
    4747  inline void   SetImgApp(PIStdImgApp* app) {mImgapp = app; }
    4848  void          SetTmpDir(string const & tmpdir);
    49 
     49  inline NamedObjMgr*   MyObjMgr()
     50  {
     51    if (mOmg == NULL) mOmg = new NamedObjMgr;
     52    return mOmg;
     53  }
    5054// Trace de fonctions 1-D , 2-D
    5155  virtual void  PlotFunc(string const & expfunc, string & nom, double xmin, double xmax,
Note: See TracChangeset for help on using the changeset viewer.