Skip to content

Commit

Permalink
Clarified SimulationMessage Constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeByDrescher committed Jan 26, 2024
1 parent cca40a8 commit 0a55ca6
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions VCellMessaging/src/SimulationMessaging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,18 @@ static const double WORKEREVENT_MESSAGE_MIN_TIME_SECONDS = 15.0;

SimulationMessaging *SimulationMessaging::m_inst = NULL;

SimulationMessaging::SimulationMessaging()
:events( )
{
bStopRequested = false;
SimulationMessaging::SimulationMessaging(){
this->bStopRequested = false;
#ifdef USE_MESSAGING
m_taskID = -1;
bStarted = false;
this->m_taskID = -1;
this->bStarted = false;
#endif
workerEventOutputMode = WORKEREVENT_OUTPUT_MODE_STDOUT;
this->workerEventOutputMode = WORKEREVENT_OUTPUT_MODE_STDOUT;
}

#ifdef USE_MESSAGING
SimulationMessaging::SimulationMessaging(const char* broker, const char* smqusername, const char* passwd, const char*qname,
const char* tname, const char* vcusername, int simKey, int jobIndex, int taskID, int ttl_low, int ttl_high)
:events( )
{
const char* tname, const char* vcusername, int simKey, int jobIndex, int taskID, int ttl_low, int ttl_high){
m_broker = const_cast<char *>(broker);
m_smqusername = const_cast<char *>( smqusername );
m_password = const_cast<char *>(passwd );
Expand Down

0 comments on commit 0a55ca6

Please sign in to comment.