You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constchar* vcusername, int simKey, int jobIndex, int taskID, int ttl_low=DEFAULT_TTL_LOW, int ttl_high=DEFAULT_TTL_HIGH);
59
-
friendvoid* startMessagingThread(void* param);
55
+
voidinitialize_curl_messaging(bool alsoPrintToStdOut, constchar* broker, constchar* vcusername, int simKey, int jobIndex, int taskID, int ttl_low=DEFAULT_TTL_LOW, int ttl_high=DEFAULT_TTL_HIGH);
60
56
#endif
61
57
58
+
protected:
59
+
virtual~SimulationMessaging() noexcept;
60
+
62
61
private:
63
62
// Statics
64
63
staticvoidsendStdOutStatus(WorkerEvent*);
@@ -78,9 +77,6 @@ class SimulationMessaging {
78
77
staticbool isInitialized;
79
78
80
79
SimulationMessaging();
81
-
#ifdef USE_MESSAGING
82
-
SimulationMessaging(constchar* broker, constchar* vcusername, int simKey, int jobIndex, int taskID, int ttl_low=DEFAULT_TTL_LOW, int ttl_high=DEFAULT_TTL_HIGH);
@@ -132,26 +119,16 @@ void SimulationMessaging::setWorkerEvent(JobEvent::Status status, const double p
132
119
133
120
voidSimulationMessaging::waitUntilFinished() {
134
121
this->eventHandler.requestStopAndWaitForIt();
135
-
// if (workerEventOutputMode == WORKEREVENT_OUTPUT_MODE_STDOUT) return;
136
-
// #ifdef USE_MESSAGING
137
-
// std::cout << "!!!waiting for thread to exit" << std::endl;
138
-
// pthread_join(newWorkerEventThread, NULL);
139
-
// std::cout << "!!Threads joined successfully" << std::endl;
140
-
// #endif
141
122
}
142
123
143
124
#ifdef USE_MESSAGING
144
125
145
-
SimulationMessaging* SimulationMessaging::create(constchar* broker, constchar* smqusername, constchar* passwd, constchar* qname, constchar* tname, constchar* vcusername, int simKey, int jobIndex, int taskID, int ttl_low, int ttl_high){
146
-
if (m_inst != NULL && m_inst->workerEventOutputMode == WORKEREVENT_OUTPUT_MODE_STDOUT) {
voidSimulationMessaging::initialize_curl_messaging(bool alsoPrintToStdOut, constchar* broker, constchar* vcusername, int simKey, int jobIndex, int givenTaskID, int ttl_low, int ttl_high){
0 commit comments