English Français

Documentation / Manuel développeur

Modules disponibles

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / ReLauncher: URANIE::Relauncher::TThreadedRun Class Reference
Uranie / ReLauncher v4.9.0
/* @license-end */
URANIE::Relauncher::TThreadedRun Class Reference

#include <TThreadedRun.h>

Inheritance diagram for URANIE::Relauncher::TThreadedRun:
Collaboration diagram for URANIE::Relauncher::TThreadedRun:

Public Member Functions

 TThreadedRun (TEval *, long)
 
virtual ~TThreadedRun (void)
 
virtual void startSlave (void)
 
virtual Bool_t onMaster (void)
 
virtual void stopSlave (void)
 
void calcul_loop (int)
 
virtual void put (long int, std::vector< URANIE::DataServer::UEntry * > *, std::vector< URANIE::DataServer::UEntry * > *, int=0)
 
virtual Bool_t readyToGet ()
 
virtual int get (long &)
 
- Public Member Functions inherited from URANIE::Relauncher::TShareRun
 TShareRun (TEval *fun)
 
virtual ~TShareRun ()
 
virtual TEvalgetEval ()
 
virtual void put (long, vector< URANIE::DataServer::UEntry * > *in, vector< URANIE::DataServer::UEntry * > *out, int icalc)=0
 
- Public Member Functions inherited from URANIE::Relauncher::TRun
virtual ~TRun ()
 

Protected Member Functions

struct element serviceGet ()
 
void servicePut (long, int)
 

Protected Attributes

long _nbnode
 
int _runcore
 
pthread_mutex_t _mutex_in
 
pthread_mutex_t _mutex_out
 
pthread_cond_t _invide
 
pthread_cond_t _outvide
 
std::queue< struct element_qin
 
std::queue< struct relement_qout
 
std::vector< struct job_job
 
- Protected Attributes inherited from URANIE::Relauncher::TShareRun
TEval_fun
 

Additional Inherited Members

- Public Attributes inherited from URANIE::Relauncher::TRun
Int_t _ncpus
 

Constructor & Destructor Documentation

◆ TThreadedRun()

URANIE::Relauncher::TThreadedRun::TThreadedRun ( TEval user,
long  nbnod 
)

◆ ~TThreadedRun()

URANIE::Relauncher::TThreadedRun::~TThreadedRun ( void  )
virtual

Member Function Documentation

◆ calcul_loop()

◆ get()

int URANIE::Relauncher::TThreadedRun::get ( long &  id)
virtual

◆ onMaster()

Bool_t URANIE::Relauncher::TThreadedRun::onMaster ( void  )
virtual

◆ put()

void URANIE::Relauncher::TThreadedRun::put ( long int  ,
std::vector< URANIE::DataServer::UEntry * > *  ,
std::vector< URANIE::DataServer::UEntry * > *  ,
int  = 0 
)
virtual

References _invide, _mutex_in, and _qin.

Referenced by stopSlave().

◆ readyToGet()

Bool_t URANIE::Relauncher::TThreadedRun::readyToGet ( )
virtual

Implements URANIE::Relauncher::TRun.

References _qout.

◆ serviceGet()

struct element URANIE::Relauncher::TThreadedRun::serviceGet ( )
protected

Referenced by calcul_loop().

◆ servicePut()

void URANIE::Relauncher::TThreadedRun::servicePut ( long  id,
int  ret 
)
protected

◆ startSlave()

void URANIE::Relauncher::TThreadedRun::startSlave ( void  )
virtual

◆ stopSlave()

void URANIE::Relauncher::TThreadedRun::stopSlave ( void  )
virtual

Implements URANIE::Relauncher::TRun.

References _job, _runcore, and put().

Referenced by ~TThreadedRun().

Member Data Documentation

◆ _invide

pthread_cond_t URANIE::Relauncher::TThreadedRun::_invide
protected

Referenced by put(), TThreadedRun(), and ~TThreadedRun().

◆ _job

std::vector<struct job> URANIE::Relauncher::TThreadedRun::_job
protected

Referenced by startSlave(), and stopSlave().

◆ _mutex_in

pthread_mutex_t URANIE::Relauncher::TThreadedRun::_mutex_in
protected

Referenced by put(), TThreadedRun(), and ~TThreadedRun().

◆ _mutex_out

pthread_mutex_t URANIE::Relauncher::TThreadedRun::_mutex_out
protected

◆ _nbnode

long URANIE::Relauncher::TThreadedRun::_nbnode
protected

◆ _outvide

pthread_cond_t URANIE::Relauncher::TThreadedRun::_outvide
protected

◆ _qin

std::queue<struct element> URANIE::Relauncher::TThreadedRun::_qin
protected

Referenced by put().

◆ _qout

std::queue<struct relement> URANIE::Relauncher::TThreadedRun::_qout
protected

Referenced by get(), readyToGet(), and servicePut().

◆ _runcore

int URANIE::Relauncher::TThreadedRun::_runcore
protected

Referenced by startSlave(), stopSlave(), and TThreadedRun().