@@ -30,7 +30,7 @@ std::unordered_map<std::string, unsigned long> num_actors;
30
30
namespace wrench {
31
31
32
32
std::unordered_map<aid_t , S4U_CommPort *> S4U_Daemon::map_actor_to_recv_commport;
33
- std::set<std::shared_ptr<S4U_Daemon>> S4U_Daemon::running_actors;
33
+ // std::set<std::shared_ptr<S4U_Daemon>> S4U_Daemon::running_actors;
34
34
35
35
int S4U_Daemon::num_non_daemonized_actors_running = 0 ;
36
36
@@ -82,6 +82,8 @@ namespace wrench {
82
82
this ->has_returned_from_main = false ;
83
83
84
84
// std::cerr << "IN DAEMON CONSTRUCTOR: " << this->process_name << "\n";
85
+ this ->commport = S4U_CommPort::getTemporaryCommPort ();
86
+ this ->recv_commport = S4U_CommPort::getTemporaryCommPort ();
85
87
}
86
88
87
89
S4U_Daemon::~S4U_Daemon () {
@@ -259,15 +261,15 @@ namespace wrench {
259
261
* @brief Method that run's the user-defined main method (that's called by the S4U actor class)
260
262
*/
261
263
void S4U_Daemon::runMainMethod () {
262
- this ->commport = S4U_CommPort::getTemporaryCommPort ();
263
- this ->recv_commport = S4U_CommPort::getTemporaryCommPort ();
264
+ // this->commport = S4U_CommPort::getTemporaryCommPort();
265
+ // this->recv_commport = S4U_CommPort::getTemporaryCommPort();
264
266
// Set the commport receiver
265
267
// Causes Mailbox::put() to no longer implement a rendez-vous communication.
266
268
this ->commport ->s4u_mb ->set_receiver (this ->s4u_actor );
267
269
// this->recv_commport->set_receiver(this->s4u_actor);
268
270
269
271
S4U_Daemon::map_actor_to_recv_commport[simgrid::s4u::this_actor::get_pid ()] = this ->recv_commport ;
270
- S4U_Daemon::running_actors.insert (this ->getSharedPtr <S4U_Daemon>());
272
+ // S4U_Daemon::running_actors.insert(this->getSharedPtr<S4U_Daemon>());
271
273
272
274
this ->num_starts ++;
273
275
// Compute zero flop so that nothing happens
@@ -283,7 +285,7 @@ namespace wrench {
283
285
S4U_CommPort::retireTemporaryCommPort (this ->commport );
284
286
this ->recv_commport ->s4u_mb ->set_receiver (nullptr );
285
287
S4U_CommPort::retireTemporaryCommPort (this ->recv_commport );
286
- S4U_Daemon::running_actors.erase (this ->getSharedPtr <S4U_Daemon>());
288
+ // S4U_Daemon::running_actors.erase(this->getSharedPtr<S4U_Daemon>());
287
289
}
288
290
289
291
0 commit comments